SA-MP Forums Archive
Warning Invalid Tag Or Miss-match! 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: Warning Invalid Tag Or Miss-match! help (/showthread.php?tid=336765)



Warning Invalid Tag Or Miss-match! help - Infinity90 - 23.04.2012

Hi I'm Getting Warnings :/

Lines 193 - 195
Код:
    INI_Int("PosX",pInfo[playerid][pPos_x]);
    INI_Int("PosY",pInfo[playerid][pPos_y]);
    INI_Int("PosZ",pInfo[playerid][pPos_z]);
Warning Code <-- Happens for all 3 lines (193 - 195)
Код:
 warning 213: tag mismatch
My Enum Code
Код:
        Float:pPos_x,
	Float:pPos_y,
	Float:pPos_z,



Re: Warning Invalid Tag Or Miss-match! help - ViniBorn - 23.04.2012

pawn Код:
INI_Float("PosX",pInfo[playerid][pPos_x]);
INI_Float("PosY",pInfo[playerid][pPos_y]);
INI_Float("PosZ",pInfo[playerid][pPos_z]);



Re: Warning Invalid Tag Or Miss-match! help - Infinity90 - 23.04.2012

thanks Awesome Dude Again


Re: Warning Invalid Tag Or Miss-match! help - Calgon - 23.04.2012

Just to add since Viniborn didn't explain the problem:

Floats (as you notice you prepend the 'Float:' tag before those variables) are numbers which have a decimal value, these are used for coordinates, health, armour, etc. You need to use the 'float' functions for any file-saving functions or anything related that deals with the floats, integers (the normal variable type when you don't specify a tag) are whole numbers and aren't the same as floats, as they don't support decimal values.