INI WriteInt warning - 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: INI WriteInt warning (
/showthread.php?tid=444348)
INI WriteInt warning -
CrazyManiac - 16.06.2013
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.
Re: INI WriteInt warning -
horsemeat - 16.06.2013
It is because health is a float
Re: INI WriteInt warning -
CrazyManiac - 16.06.2013
Oh ok....but it will work fine ingame?
Re: INI WriteInt warning -
horsemeat - 16.06.2013
you could try using floatround
https://sampwiki.blast.hk/wiki/Floatround
AW: INI WriteInt warning -
HurtLocker - 16.06.2013
Or use INI_WriteFloat