Wanted level saving to database.
#1

Greetings samp community.
Im trying to save wanted level to my database, so players regain it when they reconnect.

However my question is.
is this a correct stock?

Код:
stock SavePlayerData(playerid)
{
        new query[100];
        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, "", "");
}
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: 2 Guest(s)