number of arguments does not match definition and tag mismatch help
#1

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?
Reply
#2

Vehicles[id][CarPosX]

Same goes for Y and Z

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

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)