MYSQL Saving
#2

Do it on two queries like this
PHP код:
   new update1[300];
    
format(update1,sizeof(update1),"UPDATE users SET pMoney='%i', pAdmin='%i', pSkin='%i', pScore='%i', pPolice='%i', pGang='%i', pHorseshoes='%i', pDealer='%i', pWarnings='%i' WHERE pName = '%s'",GetPlayerMoney(playerid), PlayerInfo[playerid][pAdmin], GetPlayerSkin(playerid), GetPlayerScore(playerid), PlayerInfo[playerid][pPolice], PlayerInfo[playerid][pGang], PlayerInfo[playerid][pHorseshoes], PlayerInfo[playerid][pDealer], PlayerInfo[playerid][pWarnings], PlayerName(playerid));
    
mysql_query(1update1);
    new 
update2[128];
    
format(update2sizeof(update2), "UPDATE users SET pJob='%i', pHouseID='%i' WHERE pName='%s'"PlayerInfo[playerid][pJob], PlayerInfo[playerid][pHouseID], PlayerName(playerid));
    
mysql_query(1update2); 
Reply


Messages In This Thread
MYSQL Saving - by STONEGOLD - 29.06.2015, 23:39
Re: MYSQL Saving - by nezo2001 - 29.06.2015, 23:48
Re: MYSQL Saving - by kloning1 - 30.06.2015, 05:38
Re: MYSQL Saving - by Cheesus - 30.06.2015, 08:33
Re: MYSQL Saving - by STONEGOLD - 30.06.2015, 09:25
Re: MYSQL Saving - by STONEGOLD - 30.06.2015, 10:15
Re: MYSQL Saving - by Suicidal.Banana - 30.06.2015, 10:32
Re: MYSQL Saving - by STONEGOLD - 30.06.2015, 10:37
Re: MYSQL Saving - by Suicidal.Banana - 30.06.2015, 11:08
Re: MYSQL Saving - by STONEGOLD - 30.06.2015, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)