07.11.2010, 19:48
So I converted my gang vehicles and gang weapon saving to sscanf to narrow down the file lines, but I keep getting a tag mismatch error which I can't figure out how to fix. The gang weapon saving/loading is working fine, just the gang vehicles are giving me probs.
Lines giving tag mismatch errors:
Here is the enum and array:
Help on this issue would be appreciated.
Lines giving tag mismatch errors:
pawn Код:
unformat(dini_Get(gfile, key), "p</>ffffd", GangVeh[gangid][x][VehX], GangWeps[gangid][x][VehY], GangWeps[gangid][x][VehZ], GangWeps[gangid][x][VehAng], GangWeps[gangid][x][VehModel]);
pawn Код:
format(str, sizeof(str), "%f/%f/%f/%f/%d", GangVeh[gangid][x][VehX], GangWeps[gangid][x][VehY], GangWeps[gangid][x][VehZ], GangWeps[gangid][x][VehAng], GangWeps[gangid][x][VehModel]); //This line as well
pawn Код:
enum GANG_VEH
{
VehID,
Float:VehX,
Float:VehY,
Float:VehZ,
Float:VehAng,
VehModel,
VehSpawned
}
new GangVeh[MAX_GANGS][3][GANG_VEH];