SA-MP Forums Archive
Save system problem - 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: Save system problem (/showthread.php?tid=435114)



Save system problem - Squirrel - 05.05.2013

Now the score isnt being added and stuff like that. For example when you die. Or for example when you wanr someone it doesnt save it. Tho it saves everything else.

The adding looks like this
Код:
PlayerInfo[killerid][pKills] += 1;
	PlayerInfo[playerid][pDeaths] += 1;



Re: Save system problem - MattyG - 05.05.2013

Just debug your OnPlayerDeath and find out why the code isn't being reached.


Re: Save system problem - Yashas - 05.05.2013

Your code is correct ,it's something else that stops you expected results.Could you please post the whole code(Not the whole file, the appropriate part of the file).

Example:All the code on OnPlayerDeath