SA-MP Forums Archive
"How'd you get level 97?" "I'm not... WTF!?" - 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: "How'd you get level 97?" "I'm not... WTF!?" (/showthread.php?tid=155850)



"How'd you get level 97?" "I'm not... WTF!?" - Antonio [G-RP] - 19.06.2010

For some reason, I get random levels and random money, hell, I probly got a random cock size.

In MySQL, my level is 5, and my money is 50, but in-game its random as fuck.

This is my loading code...

pawn Код:
.....           mysql_store_result(MySQL:connection);
            mysql_fetch_row(result, "|", MySQL:connection);

            split(result, field, '|');

            PlayerInfo[spareid][pLevel] = strval(field[3]);
            PlayerInfo[spareid][pAdmin] = strval(field[4]);
            PlayerInfo[spareid][pCash] = strval(field[5]);
            PlayerInfo[spareid][pBank] = strval(field[6]);
            PlayerInfo[spareid][pSkin] = strval(field[7]);......
But fr some reason, after I do SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]); , its still some random number!


Re: "How'd you get level 97?" "I'm not... WTF!?" - oliverrud - 19.06.2010

Could you show me your database? The structure