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.
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;
}
stock SaveFactionVehicle(Model, Float:x, Float:y, Float:z, Float:a, ColorA, ColorB, Faction)
{
new Query[512];
new Faction;
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;
}
Try this one :
PHP код:
|
I got a problem with my saving system for my dynamic vehicle system.
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 Faction; <-- Delete that,
format(Query, sizeof(Query), "INSERT INTO `dynamicvehicles` (ModelID, posX, posY, posZ, posA, ColorA, ColorB, Faction) VALUES(%d, %f, %f, %f, %f, %i, %i, %i)",
format(Query, sizeof(Query), "INSERT INTO `dynamicvehicles` (ModelID, posX, posY, posZ, posA, ColorA, ColorB, Faction) VALUES(%d, %f, %f, %f, %f, %d, %d, %d)",
Firstly..
Why are you using "%i" When you're not referencing / passing a playerid to another function Secondly... You already created the value "Faction" When it's defined in the stock it's self... PHP код:
Код:
new Faction; <-- Delete that, PHP код:
PHP код:
|