Saving system - 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: Saving system (
/showthread.php?tid=379887)
Saving system -
xMCx - 23.09.2012
mybe my script bugged but
i want when the player leaves he come back with his same spot and same vip level+admin level
idk why it doest work.. i use yini
Re: Saving system -
clarencecuzz - 23.09.2012
Have you used INI_ParseFile in your script at all?
Re: Saving system -
xMCx - 23.09.2012
nope
Re: Saving system -
clarencecuzz - 23.09.2012
INI_ParseFile is what LOADS the users data. Check out these threads:
https://sampforum.blast.hk/showthread.php?tid=376424
Re: Saving system -
xMCx - 23.09.2012
oh i missunderstand u , i got the same register system but without whirlpool
Re: Saving system -
xMCx - 23.09.2012
any thoughts?
Re: Saving system -
clarencecuzz - 23.09.2012
Any thoughts on what? Just use INI_ParseFile when they login.
Re: Saving system -
xMCx - 23.09.2012
when i get IG i supposed to be an admin and vip
but it doesnt work
Re: Saving system -
clarencecuzz - 23.09.2012
Put it where they log in.
pawn Код:
//if password is correct
//Login player
//INI_ParseFile etc..
Re: Saving system -
xMCx - 23.09.2012
ik , look ill explain more:
pawn Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
// Here i want when the player logs in , he gets his admin+vip status