SA-MP Forums Archive
[Help:] How do I check between things? - 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: [Help:] How do I check between things? (/showthread.php?tid=173575)



[Help:] How do I check between things? - Venturas - 03.09.2010

pawn Код:
if(GetPlayerHealth(playerid) >= 10 || GetPlayerHealth(playerid) <= 20)
{
How do I identify a player with 10health through 20health?


Re: [Help:] How do I check between things? - Nero_3D - 03.09.2010

Guys if you are getting the "number of arguments does not match denition"

Check how the function works: GetPlayerHealth - CLICK ME


Re: [Help:] How do I check between things? - Venturas - 03.09.2010

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Guys if you are getting the "number of arguments does not match denition"

Check how the function works: GetPlayerHealth - CLICK ME
-_-

This isn't about the function, this is about math.


Re: [Help:] How do I check between things? - Nero_3D - 03.09.2010

Quote:
Originally Posted by Venturas
Посмотреть сообщение
-_-

This isn't about the function, this is about math.
Its my fault if I understood this wrong but you still use GetPlayerHealth wrong -_-

And do you rly call that maths ^^"

pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
if(10 <= health && health <= 20) {}



Re: [Help:] How do I check between things? - Venturas - 03.09.2010

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Its my fault if I understood this wrong but you still use GetPlayerHealth wrong -_-

And do you rly call that maths ^^"

pawn Код:
new Float:health;
GetPlayerHealth(playerid, health);
if(10 <= health && health <= 20) {}
Bro, it's just an example, relax. And it is math.


Re: [Help:] How do I check between things? - Nero_3D - 03.09.2010

Quote:
Originally Posted by Venturas
Посмотреть сообщение
Bro, it's just an example, relax. And it is math.
Whatsoever hope you are satisfied now


Re: [Help:] How do I check between things? - Scenario - 03.09.2010

My code didn't work, but you've already fixed it. Whatever.