SA-MP Forums Archive
Quick question - 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: Quick question (/showthread.php?tid=177046)



Quick question - willsuckformoney - 15.09.2010

Never got this before but how come I get this warning when this little line?

Код:
number of arguments does not match definition
pawn Код:
if(GetPlayerHealth(playerid) >= 1)



Re: Quick question - zSuYaNw - 15.09.2010

pawn Код:
if(GetPlayerHealth(playerid) >= 1.0)
Float Float Float!!


Re: Quick question - willsuckformoney - 15.09.2010

ok sooo now its

Код:
error 001: expected token: ";", but found "-identifier-"
pawn Код:
new Float:Health
    Health = GetPlayerHealth(playerid, Health);
    if(Health >= 1.0)
    {



Re: Quick question - zSuYaNw - 15.09.2010

http://pastebin.com/cqGPBner


Re: Quick question - willsuckformoney - 15.09.2010

lol

Код:
error 001: expected token: ";", but found "-identifier-"
pawn Код:
GetPlayerHealth(playerid, Health);



Re: Quick question - Hijolion - 15.09.2010

fixed code.

new Float:Health;
Health = GetPlayerHealth(playerid, Health);
if(Health >= 1.0)
{


Re: Quick question - [L3th4l] - 15.09.2010

read at the errors next time, u missing a ';',

new Float:Health;

BAHHH:

1. This forum requires that you wait 120 seconds between posts. Please try again in 39 seconds.


Re: Quick question - willsuckformoney - 15.09.2010

lol wow i fail


Re: Quick question - DiddyBop - 16.09.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
lol wow i fail
aint dat da truth...