22.06.2015, 20:39
I got a problem with my saving system for my dynamic vehicle system.
Its giving me these warnings:
And here is the code:
Its giving me these warnings:
Код:
C:\Users\SoulLedger\Desktop\Everest Roleplay\Sever Files\gamemodes\erp.pwn(8270) : warning 219: local variable "Faction" shadows a variable at a preceding level C:\Users\SoulLedger\Desktop\Everest Roleplay\Sever Files\gamemodes\erp.pwn(8273 -- 8274) : warning 213: tag mismatch C:\Users\SoulLedger\Desktop\Everest Roleplay\Sever Files\gamemodes\erp.pwn(8270) : warning 203: symbol is never used: "Faction" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
pawn Код:
stock SaveFactionVehicle(Model, Float:x, Float:y, Float:z, Float:a, ColorA, ColorB, Faction)
{
new Query[512];
format(Query, sizeof(Query), "INSERT INTO `dynamicvehicles` (ModelID, posX, posY, posZ, posA, ColorA, ColorB, Faction) VALUES(%d, %f, %f, %f, %f, %i, %i, %i)",
Model, x, y, z, a, ColorA, ColorB, Faction);
mysql_query(Query);
mysql_free_result();
return 1;
}