tag mismatch || number of arguments does not match definition - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: tag mismatch || number of arguments does not match definition (
/showthread.php?tid=205274)
tag mismatch || number of arguments does not match definition -
CSMajor - 01.01.2011
so i hav this in my script at top
then the lines gives me errors on are
Код:
dini_IntSet(file, "Health",PlayerInfo[playerid][pHealth] = 100);
and
Код:
SetPlayerHealth(playerid, dini_Int(file, "Health")-GetPlayerHealth(playerid));
but i hav these:
pawn Код:
C:\Users\Admin\Desktop\RP\gamemodes\New_RP.pwn(1703) : warning 213: tag mismatch
C:\Users\Admin\Desktop\RP\gamemodes\New_RP.pwn(1738) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Warnings.
sorry for my bad english
Re: tag mismatch || number of arguments does not match definition -
admantis - 01.01.2011
dini_Int set a INTEGER, which is a NATURAL NUMBER. You should use dini_FloatSet to set FLOATS (numbers with a decimal point), not INTEGERS.
Re: tag mismatch || number of arguments does not match definition -
SkizzoTrick - 01.01.2011
pawn Код:
dini_IntSet(file, "Health",PlayerInfo[playerid][pHealth] = 100);
This is wrong,as admantis says.
What your trying to do?To save the health or what?
You need to explain a bit xD
Re: tag mismatch || number of arguments does not match definition -
Hal - 01.01.2011
Quote:
Originally Posted by SkizzoTrick
pawn Код:
dini_IntSet(file, "Health",PlayerInfo[playerid][pHealth] = 100);
This is wrong,as admantis says.
What your trying to do?To save the health or what?
You need to explain a bit xD
|
use dini_FloatSet
dini_FloatSet is for floats
dini_IntSet is for integers
You are using a float (health)
Re: tag mismatch || number of arguments does not match definition -
CSMajor - 01.01.2011
pawn Код:
C:\Users\Admin\Desktop\RP\gamemodes\New_RP.pwn(1738) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
and line is
Код:
SetPlayerHealth(playerid, dini_FloatSet(file, "Health")-GetPlayerHealth(playerid));
thanks for help
Re: tag mismatch || number of arguments does not match definition -
Grim_ - 01.01.2011
What are you trying to do? I think this is what you're trying to achieve:
pawn Код:
SetPlayerHealth( playerid, dini_GetFloat( file, "Health" ) - GetPlayerHealth( playerid ) );