08.05.2014, 13:58
Код:
format(string, sizeof(string), "UPDATE players SET InvWeapon=%d,InvAmmo=%d,Lighter=%d,Cigarettes=%d,RequestingBackup=%d,Roadblock=%d,Mask=%d,Maskuse=%d,HideNumber=%d,Speaker=%d WHERE id=%d", PlayerInfo[playerid][pInvWeapon], PlayerInfo[playerid][pInvAmmo], PlayerInfo[playerid][pLighter], PlayerInfo[playerid][pCigarettes], PlayerInfo[playerid][pRequestingBackup], PlayerInfo[playerid][pRoadblock], PlayerInfo[playerid][pMask], PlayerInfo[playerid][pMaskuse], PlayerInfo[playerid][pHideNumber], PlayerInfo[playerid][pSpeaker], PlayerInfo[playerid][pSQLID]); MySQLCheckConnection(); mysql_query(string);