MySQL saving
#5

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
use this one
pawn Код:
public DriftCancellation(playerid)
{
    PlayerDriftCancellation[playerid] = 0;
    AnnaRaha(playerid,DriftPointsNow[playerid],0);
    new query[300], pname[24];
    GetPlayerName(playerid, pname, 24);
    format(query, sizeof(query), "UPDATE `playerdata` SET Drift='%i' WHERE user='%s'", DriftPoints[playerid], pname);
    mysql_query(query);//u forgot this line
    DriftPointsNow[playerid] = 0;
    DriftPoints[playerid] = 0;
    scores[playerid] = 0;
    TextDrawHideForPlayer(playerid, Chet[playerid]);
    TextDrawHideForPlayer(playerid, ChetP[playerid]);
}
Thanks man... It work now.
Reply


Messages In This Thread
MySQL saving - by finelaq - 30.08.2014, 12:49
Re: MySQL saving - by Wizzy951 - 30.08.2014, 12:53
Re: MySQL saving - by finelaq - 30.08.2014, 12:57
Re: MySQL saving - by BroZeus - 30.08.2014, 13:00
Re: MySQL saving - by finelaq - 30.08.2014, 13:06
Re: MySQL saving - by Fred1993 - 30.08.2014, 13:07

Forum Jump:


Users browsing this thread: 1 Guest(s)