SA-MP Forums Archive
Need assistant with my login and register script - 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: Need assistant with my login and register script (/showthread.php?tid=184292)



Need assistant with my login and register script - andruz99 - 19.10.2010

okey i have created same kind of a system like LARP

PlayerInfo[playerid][pBanana] = 1; etc....

but i have a problem with this system

when i create a new account and register and then login then it gives me the same stats what i had in my other account
could anyone tell me what the problem could be?


Re: Need assistant with my login and register script - Crayon - 19.10.2010

Can you explain the problem a bit more? I don't understand what you mean by when you register it gives you the same stats as your "old account".

Also please post your code. It's most likely not reading correctly from the file.


Re: Need assistant with my login and register script - andruz99 - 19.10.2010

Solved it had to add under Public OnPlayerConnect(playerid)

PlayerInfo[playerid][pDrugs] = 0;
PlayerInfo[playerid][pFood] = 0;
PlayerInfo[playerid][pMoney] = 0;

etc...