SA-MP Forums Archive
number of arguments does not match definition and tag mismatch help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: number of arguments does not match definition and tag mismatch help (/showthread.php?tid=423876)



number of arguments does not match definition and tag mismatch help - Zalman - 19.03.2013

Heres the warnings:
pawn Код:
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
warning 202: number of arguments does not match definition
warning 213: tag mismatch
 warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
Heres the code:
pawn Код:
djAutocommit(false);
format(Vehicle, sizeof(Vehicle), "V_%d/PosX", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarPosX], true);
format(Vehicle, sizeof(Vehicle), "V_%d/PosY", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarPosY], true);
format(Vehicle, sizeof(Vehicle), "V_%d/PosZ", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarPosZ], true);
format(Vehicle, sizeof(Vehicle), "V_%d/ZAngle", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarZAngle], true);
format(Vehicle, sizeof(Vehicle), "V_%d/Model", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarModel], true);
format(Vehicle, sizeof(Vehicle), "V_%d/Col1", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarColour1], true);
format(Vehicle, sizeof(Vehicle), "V_%d/Col2", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarColour2], true);
format(Vehicle, sizeof(Vehicle), "V_%d/Group", id);
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarGroup], true);
djCommit(VEHICLES_FILE);
djAutocommit(true);
CarCount++;
Can someone please help with this?


Re: number of arguments does not match definition and tag mismatch help - Baboon - 19.03.2013

Vehicles[id][CarPosX]

Same goes for Y and Z

Are you sure you are using Float: CarposX in your enum?


Re: number of arguments does not match definition and tag mismatch help - Misiur - 19.03.2013

Line numbers would be helpful

pawn Код:
djUnset(VEHICLES_FILE, Vehicle, Vehicles[id][CarPosX], true);
pawn Код:
djUnset (file[],path[],use_cached_value=true)
Take a look and see what's wrong