SA-MP Forums Archive
k i forgot this can somebody remind me? - 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: k i forgot this can somebody remind me? (/showthread.php?tid=144687)



k i forgot this can somebody remind me? - hardstop - 28.04.2010

dini_IntSet(file,"Registreeritud", 1);

PlayerInfo[playerid][Registreeritud] = dini_Int(file, "Registreeritud");

okey basicly i have stat called Registered in english and i want OnPlayerConnect to add like if registered 0 then say your not registered etc...

can somebody remind me how to do that?


Re: k i forgot this can somebody remind me? - Torran - 28.04.2010

You could use fexist, To check if there user file exists or not, And do it that way


Re: k i forgot this can somebody remind me? - CAR - 28.04.2010

OnPlayerConnect or somewhere else:
pawn Код:
format(file.....); // Change this
PlayerInfo[playerid][Registreeritud] = dini_Int(file, "Registreeritud");
if(PlayerInfo[playerid][Registreeritud] == 0)
{
 SendClientMessage(playerid, 0xFFFFFF, "You aren't registered!");
}
else if(PlayerInfo[playerid][Registreeritud] == 1)
{
 SendClientMessage(playerid, 0xFFFFFF, "You are registered!");
}



Re: k i forgot this can somebody remind me? - [HiC]TheKiller - 28.04.2010

Also, you could use dini_Isset