Wanted level saving to database.
#5

Quote:
Originally Posted by MartinSwag
Посмотреть сообщение
What's the '\' for after `ID` = %d"?

Код:
stock SavePlayerData(playerid)
{
        new query[256];
        mysql_format(mysql, query, sizeof(query), "UPDATE `players` SET `IP`='%s', `Admin`=%d, `VIP`=%d, `Kills`=%d, `Deaths`=%d, `Score`=%d, `Wanted`=%d, `Money`=%d WHERE `ID`=%d",
        IP[playerid], pData[playerid][Admin], pData[playerid][VIP], pData[playerid][Kills], pData[playerid][Deaths], GetPlayerScore(playerid), GetPlayerWantedLevel(playerid), pData[playerid][Money], pData[playerid][ID]);
        mysql_tquery(mysql, query);
}
A typo lol, allright guys ill set the query size a bit higher
Reply


Messages In This Thread
Wanted level saving to database. - by yvoms - 25.11.2015, 11:11
Re: Wanted level saving to database. - by RedCounty - 25.11.2015, 11:15
Re: Wanted level saving to database. - by MartinSwag - 25.11.2015, 11:19
Re: Wanted level saving to database. - by Dokins - 25.11.2015, 11:20
Re: Wanted level saving to database. - by yvoms - 25.11.2015, 11:21
Re: Wanted level saving to database. - by yvoms - 25.11.2015, 11:25
Re: Wanted level saving to database. - by CmZxC - 25.11.2015, 11:30
Re: Wanted level saving to database. - by MartinSwag - 25.11.2015, 11:40
Re: Wanted level saving to database. - by yvoms - 25.11.2015, 11:43
Re: Wanted level saving to database. - by CmZxC - 25.11.2015, 11:44

Forum Jump:


Users browsing this thread: 3 Guest(s)