if this is with npcserver, can't u use a with?
like:
NPC Code:
/*
you could just do something like make accounts like:
setstring server.faqacc1,accountname;
so lets make believe you have 2 faqs.
*/
Database NPC / Source NPC:
if (created||initialized) {
setstring server.faqacc0,accountname;
setstring server.faqacc1,accountname;
// this.maxaccounts should be the highest numer you have in the list...so for this example the maxaccnts is 1...
this.maxaccnts = 1;
this.i = 0;
}
while (this.i<this.maxaccnts) {
with(getplayer(#s(server.faqacc#v(this.i)))) {
if (strequals(#g,FAQ)&&strlen(#s(server.faqaccon#v(th is.i)))<1) {
setstring server.faqaccon,#v(timevar);
} else if (!strequals(#g,FAQ)&&strlen(#s(server.faqaccon#v(t his.i)))>0) {
this.starttime = strtofloat(#s(server.faqaccon#v(this.i)));
setstring server.faqaccon#v(this.i),;
this.currtime = timevar;
this.hastime = strtofloat(#s(server.faqacctime#v(this.i)));
this.newtime = (this.currtime-this.starttime)+this.hastime;
setstring server.faqacctime,#v(this.newtime);
this.i++;
}
}
sleep .1;
}
while (this.i>=this.maxaccnts) {this.i=0;sleep .1;}
if (actionserverCheckTime) {
this.j=0;
while (this.j<this.maxaccnts) {
showimg this.j+500,@#s(server.faqacc#v(this.j)): #s(server.faqacctime#v(this.j)),10,100+(this.j*15) ;
changeimgvis this.j+500;
this.j++;
}
}
The NPC Used to Check times:
if (playertouchsme) toweapons Time Check;
if (playerchats&&strequals(Check FAQ Times,#c)) {triggeraction 0,0,serverCheckTime,;}
Its mostly done, i haven't tested it, i am still at school...it looks pretty good..should work... someone test it and tell me...ok? looks pretty good to me.

-PastAustin