MySQL does not save score, money
#3

Quote:
Originally Posted by speed258
Посмотреть сообщение
you missed these: ' '
No, ' ' is mosly used on %s placeholder, This code should work

pawn Код:
SavePlayer(playerid)
{
    if(pInfo[playerid][Logged] != 1) return true;
   
    new Query[500], pInfo[playerid][pScore] = GetPlayerScore(playerid), pInfo[playerid][pMoney] = GetPlayerMoney(playerid);

    format( Query, sizeof( Query ), "UPDATE `playerdata` SET `admin` =%i, `score` =%i, `money` =%i, `kills` =%i, `deaths` =%i WHERE `id` =%d LIMIT 1",pInfo[playerid][pAdmin],pInfo[playerid][pScore],pInfo[playerid][pMoney],pInfo[playerid][pKills],pInfo[playerid][pDeaths],pInfo[playerid][ID]);
    mysql_query(Query);
    print(Query);
   
}
Reply


Messages In This Thread
MySQL does not save score, money - by ZBits - 18.12.2013, 12:34
Re: MySQL does not save score, money - by speed258 - 18.12.2013, 12:38
Re: MySQL does not save score, money - by Patrick - 18.12.2013, 12:52
Re: MySQL does not save score, money - by CaveDweller - 18.12.2013, 12:56
Re: MySQL does not save score, money - by ZBits - 18.12.2013, 19:30
Re: MySQL does not save score, money - by Patrick - 18.12.2013, 19:49
Re: MySQL does not save score, money - by ZBits - 18.12.2013, 20:01
Re: MySQL does not save score, money - by ZBits - 18.12.2013, 20:29

Forum Jump:


Users browsing this thread: 2 Guest(s)