Tag Mismatch with Sscanf
#4

Quote:
Originally Posted by LarzI
Посмотреть сообщение
Why rename sscanf - 'unformat' ?
Actually, if you open the sscanf2 include, unformat is already defined as a native.

Quote:
Originally Posted by PotH3Ad
Посмотреть сообщение
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:

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
Here is the enum and array:

pawn Код:
enum GANG_VEH
{
    VehID,
    Float:VehX,
    Float:VehY,
    Float:VehZ,
    Float:VehAng,
    VehModel,
    VehSpawned
}

new GangVeh[MAX_GANGS][3][GANG_VEH];
Help on this issue would be appreciated.
Try this:

pawn Код:
unformat(dini_Int(gfile, key), "p</>ffffd", GangVeh[gangid][x][VehX], GangWeps[gangid][x][VehY], GangWeps[gangid][x][VehZ], GangWeps[gangid][x][VehAng], GangWeps[gangid][x][VehModel]);
Reply


Messages In This Thread
Tag Mismatch with Sscanf - by PotH3Ad - 07.11.2010, 19:48
Re: Tag Mismatch with Sscanf - by LarzI - 07.11.2010, 19:55
Re: Tag Mismatch with Sscanf - by PotH3Ad - 07.11.2010, 20:03
Re: Tag Mismatch with Sscanf - by The_Moddler - 07.11.2010, 22:54
Re: Tag Mismatch with Sscanf - by PotH3Ad - 09.11.2010, 23:42
Re: Tag Mismatch with Sscanf - by LarzI - 10.11.2010, 04:16

Forum Jump:


Users browsing this thread: 1 Guest(s)