Help with y-ini
#1

warning 202:number of arguments does not match definition
warning 202:number of arguments does not match definition
Код:
INI_WriteFloat(File, "Health", GetPlayerHealth(playerid));
INI_WriteFloat(File, "Armour", GetPlayerArmour(playerid));
tag mismatch
tag mismatch

Код:
INI_Float("Health", PlayerInfo[playerid][pHealth]);
INI_Float("Armour", PlayerInfo[playerid][pArmour]);
Reply
#2

Should be like this GetPlayerHealth(playerid,health); or GetPlayerArmour(playerid,armor);

https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply
#3

totally forgot.

Thanks.

But, tag mismatch ?
Reply
#4

new Float:Health;
INI_WriteInt(File, "Health", GetPlayerHEalth(playerid, Health));
Reply
#5

Make sure that it's Float: pHealth, Float: pArmour, under your enum
Reply
#6

Quote:
Originally Posted by Stoyanov
Посмотреть сообщение
warning 202:number of arguments does not match definition
warning 202:number of arguments does not match definition
Код:
INI_WriteFloat(File, "Health", GetPlayerHealth(playerid));
INI_WriteFloat(File, "Armour", GetPlayerArmour(playerid));
tag mismatch
tag mismatch

Код:
INI_Float("Health", PlayerInfo[playerid][pHealth]);
INI_Float("Armour", PlayerInfo[playerid][pArmour]);
Quote:

INI_WriteFloat
INI:file - File to write to.
name[] - Data name.
Float:data - Float data.
accuracy - number of decimal places to write.

You forgot the amount of decimals, 2 should be enough for health/armor.
Reply
#7

Quote:
Originally Posted by TonyII
Посмотреть сообщение
Make sure that it's Float: pHealth, Float: pArmour, under your enum
Yep. Thanks again
Reply
#8

Quote:
Originally Posted by Facerafter
Посмотреть сообщение
You forgot the amount of decimals, 2 should be enough for health/armor.



Dude.. writing a float as a integer?
Was integer, i already made it Float.
Reply
#9

do like this

pawn Код:
INI_WriteInt(File, "Health" GetPlayerHealth(playerid, pHealth));
Reply
#10

Quote:
Originally Posted by Stoyanov
Посмотреть сообщение
Was integer, i already made it Float.
No that last part was not meant for you.
But you are missing a parameter at INI_Writefloat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)