mySQL problems - 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: mySQL problems (
/showthread.php?tid=311825)
mySQL problems -
Tyler_Idy - 18.01.2012
In my script, it saves PlayerInfo[playerid][var] into the database playerdata. It also loads playerdata and puts it into PlayerInfo[playerid][var] (whatever the var may be)
When it does the password and name, depending on what is after the line, it messes up the data in it.
Код:
GetPlayerName(playerid,PlayerInfo[playerid][Name],20);
PlayerInfo[playerid][Badlog] = 0;
Im not sure why but it it would end up setting the badlog to 111!
Another problem is that i can change information in the database anymore, it goes back to what it was before. (when i refresh)
It also cuts everything but the first 2 characters if I switch GetPlayerName and Badlog