INI WriteInt warning
#1

Hi!

I just created this line,

Код:
public OnPlayerDisconnect(playerid, reason)
{
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Health",GetPlayerHealth(playerid));
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Skin",GetPlayerSkin(playerid));
    INI_Close(File);
    return 1;
}
And got this warning,

Код:
Alpha.pwn(328) : warning 202: number of arguments does not match definition
Line 328 is INI_WriteInt(File,"Health",GetPlayerHealth(playeri d));.

Does this mather? If yes, how do I fix it?

Thanks!

CrazyManiac.
Reply
#2

It is because health is a float
Reply
#3

Oh ok....but it will work fine ingame?
Reply
#4

you could try using floatround
https://sampwiki.blast.hk/wiki/Floatround
Reply
#5

Or use INI_WriteFloat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)