MYSQL query help
#1

Код:
stock player_remove_vip_toys(iTargetID)
{
	if(PlayerInfo[iTargetID][pDonator] >= 3) return 1;
	else for(new iToyIter; iToyIter < MAX_PLAYER_ATTOBJECTS; ++iToyIter) {
		for(new LoopRapist; LoopRapist < sizeof(HoldingObjectsCop); ++LoopRapist) {
			if(HoldingObjectsCop[LoopRapist][holdingmodelid] == PlayerToyInfo[iTargetID][iToyIter][ptModelID]) {
				new
					szQuery[1024];

				SetPVarInt(iTargetID, "deleteObject", iToyIter);
				format(szQuery, sizeof(szQuery), "DELETE FROM toys WHERE Owner = %d AND ID = %d", PlayerInfo[iTargetID][pID], PlayerToyInfo[iTargetID][iToyIter][ptRealID]);
				mysql_query(szQuery, THREAD_DELETE_PLAYER_OBJECT, iTargetID, g_MySQLConnections[0]);
				if(IsPlayerAttachedObjectSlotUsed(iTargetID, iToyIter)) RemovePlayerAttachedObject(iTargetID, iToyIter);
			}
		}
	}
	SendClientMessage(iTargetID, COLOR_WHITE, "All accessories/toys that were property of your former employer have been removed.");
	return 1;
Error:
Код:
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 236: unknown parameter in substitution (incorrect #define pattern)
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : error 029: invalid expression, assumed zero
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 215: expression has no effect
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : error 029: invalid expression, assumed zero
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : warning 215: expression has no effect
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : error 029: invalid expression, assumed zero
D:\Downloads\Horizon\Horizon\gamemodes\HRP.pwn(3030) : fatal error 107: too many error messages on one line
Problem code:
Код:
mysql_query(szQuery, THREAD_DELETE_PLAYER_OBJECT, iTargetID, g_MySQLConnections[0]);
Please help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)