SA-MP Forums Archive
Help. - 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: Help. (/showthread.php?tid=519324)



Fixed. - Edw - 13.06.2014

Fixed.


Re: Help. - BossArturKA - 13.06.2014

In the TAB Menu a problem with level? Or it is global?
If in the TAN menu: SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);


Re: Help. - Edw - 13.06.2014

Fixed.


Re: Help. - Edw - 14.06.2014

Fixed.


Re: Help. - SyntaxQ - 14.06.2014

Do you reset the variables on OnPlayerConnect?
pawn Код:
// OnPlayerConnect

PlayerInfo[playerid][pLevel] = 0;
PlayerInfo[playerid][pCash] = 0;
// all..
The data will then be loaded from INI_ParseFile function (main loading of the player file) and put the values into your variables. The same happened with my gamemode, it was fixed by resetting.