-=====Read Code From FIles?=----- - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: -=====Read Code From FIles?=----- (
/showthread.php?tid=115126)
-=====Read Code From FIles?=----- -
pawelf94 - 22.12.2009
When someone registers this changes in the player info from 0 to 1
Код:
dini_IntSet(udb_encode(playername), "registered", 1);
how can i write this in if(... way to check at the start if someone has an account or not ?
for example
Код:
if(dini_IntSet(udb_encode(playername), "registered")) == 1
{
...
}
im interested how to do this part how to check if its 1 or 0
Re: -=====Read Code From FIles?=----- -
LarzI - 22.12.2009
pawn Код:
if( dini_Int( udb_encode( playername ), "registered") == 1 )
That's correct