SA-MP Forums Archive
Why my Skin save system fails sometimes aleatory? - 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: Why my Skin save system fails sometimes aleatory? (/showthread.php?tid=275513)



Why my Skin save system fails sometimes aleatory? - CTCCoco - 09.08.2011

Why my Skin save system fails sometimes aleatory?

Sometimes a player lost his skin, because the system saves a crazy variable like 1953722216 , and his skin return to 0 (CJ).

This happens appareantly aleatory, most of times it works, but sometimes it fails.

I save it with the last MYSQL version with this:

MySQLUpdatePlayerInt(query, PlayerInfo[playerid][pSQLID], "Chara", GetPlayerSkin(playerid));

in OnPlayerUpdate2 function (which have godfather and all these famous roleplays).

Somebody can help me?

Thanks, and sorry for my bad English.