[Help] random crash mysql_query [crash detect]
#4

Sample

Код:
		new
		    saveQuery[2000];
		new
		    spString[1000];

    		format(saveQuery, sizeof(saveQuery), "UPDATE aacoutsername SET vPFrontLeft = '%d', vPFrontRight = '%d', vPRearLeft = '%d', vPRearRight = '%d', vPWindShield = '%d', vPFrontBumper = '%d'",PlayerInfo[playerid][PFrontLeft][0], PlayerInfo[playerid][PFrontRight][0], PlayerInfo[playerid][PRearLeft][0], PlayerInfo[playerid][PRearRight][0], PlayerInfo[playerid][PWindShield][0],PlayerInfo[playerid][PFrontBumper][0]);
            format(spString, sizeof(spString), ", vPRearBumper = '%d', vDBonnet = '%d', vDBoot = '%d', vDFrontLeft = '%d', vDFrontRight = '%d', vDRearLeft = '%d', vDRearRight = '%d' WHERE playerID = '%d'", PlayerInfo[playerid][PRearBumper][0], PlayerInfo[playerid][DBonnet][0], PlayerInfo[playerid][DBoot][0], PlayerInfo[playerid][DFrontLeft][0], PlayerInfo[playerid][DFrontRight][0], PlayerInfo[playerid][DRearLeft][0], PlayerInfo[playerid][DRearRight][0],TableID);
            
            
            strcat(saveQuery,spString);
            
			mysql_query(saveQuery);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)