[Help] Commands out of sync; you can't run this command now
#1

Код:
[11:54:13] >> mysql_query( Connection handle: 1 )

[11:54:13] CMySQLHandler::Query(UPDATE aacoutsername SET playerAmmoSpa ='500' WHERE playerID ='11223') - An error has occured. (Error ID: 2014, Commands out of sync; you can't run this command now)

[11:54:13] >> mysql_query( Connection handle: 1 )

[11:54:13] CMySQLHandler::Query(UPDATE aacoutsername SET playerAmmoFir ='0' WHERE playerID ='11223') - An error has occured. (Error ID: 2014, Commands out of sync; you can't run this command now)

[11:54:13] >> mysql_query( Connection handle: 1 )

[11:54:13] CMySQLHandler::Query(UPDATE aacoutsername SET playerCharge1 ='54' WHERE playerID ='11223') - An error has occured. (Error ID: 2014, Commands out of sync; you can't run this command now)
code

Код:
new szQueryOutput[256];

		format(szQueryOutput, sizeof(szQueryOutput), "UPDATE aacoutsername SET playerAmmoSpa ='%d' WHERE playerID ='%d'", playerVariables[playerid][pAmmoSpray], playerVariables[playerid][pInternalID]);
		mysql_query(szQueryOutput);
		format(szQueryOutput, sizeof(szQueryOutput), "UPDATE aacoutsername SET playerAmmoFir ='%d' WHERE playerID ='%d'", playerVariables[playerid][pAmmoFire], playerVariables[playerid][pInternalID]);
		mysql_query(szQueryOutput);
		format(szQueryOutput, sizeof(szQueryOutput), "UPDATE aacoutsername SET playerCharge1 ='%d' WHERE playerID ='%d'", playerVariables[playerid][pCharge][2], playerVariables[playerid][pInternalID]);
		mysql_query(szQueryOutput);
		format(szQueryOutput, sizeof(szQueryOutput), "UPDATE aacoutsername SET playerCharge2 ='%d' WHERE playerID ='%d'", playerVariables[playerid][pCharge][3], playerVariables[playerid][pInternalID]);
		mysql_query(szQueryOutput);

.
.
.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)