ZeroTrack |
11-23-2004 03:16 AM |
Quote:
Originally Posted by Salaisuus
Hrmh how come simple if flag is true script like this doesnt work online?
if (serverr.flaggy) {setimg picture.gif; y=24;}
|
how are setting the flag, offline if you just did it would set it as a player flag, how ever online it tries to set it as a server flag, but sence it has no value it just deletes the string, however if you set it as
PHP Code:
setstring serverr.flag,true;
and are checking just the name as you are above it will come back false cause the value attached to the flag is 'true'. therefore you'd have to set and check it like so.
PHP Code:
if(created) setstring serverr.flag,true;
if(strequals(#s(serverr.flag),true)) {
setimg picture.gif;
y=24;
}
although serverr.flags have to be set serverside, you can still check them clientside as well as serverside
Quote:
Im not sure if I should use server. or serverr.
|
the diffrence between server.flags and serverr.flags is that serverr.flags can only be edited serverside.
Quote:
Originally Posted by Kaimetsu
Please, learn about the NPC Server before trying to code for it.
|
I gather thats what hes doing here, tring to understand better is what this forum is for.
|