Fast 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Fast Help! (
/showthread.php?tid=252950)
Fast Help! -
dud - 03.05.2011
Код:
SavePlayer(playerid);{
new saveQuery[1000];
new ppass = PlayerInfo[playerid][pKey];
new plevel = PlayerInfo[playerid][pLevel];
format(saveQuery, sizeof(saveQuery), "UPDATE `playerinfo` SET `password` = '%s', `level` = '%d' WHERE `user` = '%s' " ,ppass , plevel , GetName(playerid));
mysql_query(saveQuery);
mysql_free_result();
}
My pass is "backspace"
in mysql i get this
password = b
level = 15
only first letter from pass :S
level is ok
why pass not show at all ?
Re: Fast Help! -
randomkid88 - 03.05.2011
You have "new ppass" which is an integer, so you should do "new ppass[SIZE]".