Corpank doesn't save on registered players - 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)
+--- Thread: Corpank doesn't save on registered players (
/showthread.php?tid=412832)
Corpank doesn't save on registered players - Patrick - 03.02.2013
Title says All
'Corpank doesn't save on registered players' it doesn't print the text Coprank=0 on .dudb file but it does add on newly registered players, hope you guys help me.
'Only on newly registered'
pawn Код:
//Coprank Global Variable
new Coprank[MAX_PLAYERS];
//Coprank DIALOG
#define DIALOG_Coprank 46
//When Player enters his password to login
Coprank[playerid] =dUserINT(PlayerName(playerid)).("Coprank"); //loads the coprank
//When Player enters his password to register and gives default ammount of 0 coprank
dUserSetINT(PlayerName(playerid)).("Coprank",0);
//When Player Leave's theve server
dUserSetINT(PlayerName(playerid)).("Coprank",Coprank[playerid]);