Warning Invalid Tag Or Miss-match! help
#1

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

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

thanks Awesome Dude Again
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)