Corpank doesn't save on registered players
#1

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)