SA-MP Forums Archive
Tag mismatch with dini.. - 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: Tag mismatch with dini.. (/showthread.php?tid=510863)



Tag mismatch with dini.. - Lajko1 - 02.05.2014

define:

pawn Код:
new armour;
Warning lines:

pawn Код:
dini_IntSet(string, "Arrmor", GetPlayerArmour(playerid, armour));
pawn Код:
dini_IntSet(string, "Arrmor", GetPlayerArmour(playerid, armour));



Re: Tag mismatch with dini.. - Konstantinos - 02.05.2014

Armour is float and the armour is stored to a variable and it's passed by reference. The function doesn't return anything.

pawn Код:
new Float: armour;
and:
pawn Код:
GetPlayerArmour(playerid, armour);
dini_IntFloat(string, "Arrmor", armour);



Re: Tag mismatch with dini.. - Lajko1 - 02.05.2014

pawn Код:
error 017: undefined symbol "dini_IntFloat"
2x


Re: Tag mismatch with dini.. - Vince - 02.05.2014

Do some research yourself instead of simply relying on others. You could search the wiki, or open the actual include file, among other things.


Re: Tag mismatch with dini.. - Konstantinos - 02.05.2014

It's meant that "Int" is replaced by "Float" - I just replaced the wrong word by accident.

It's dini_FloatSet.


Re: Tag mismatch with dini.. - Lajko1 - 02.05.2014

You was really helpful Konstantinos, it's working rep+ for you, thank you.