Need help - 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: Need help (
/showthread.php?tid=148989)
Need help -
ViruZZzZ_ChiLLL - 20.05.2010
Okay so basically I need help with this :
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(z == 1.51)
if(z == 1.50)
How can I get the measurement of
z == 1.51 and above
and
z == 1.50 and below. If you know what I mean
Because, for example a command will only work on the
z == 1.51 and onwards
and it won't work
z == 1.50 and below, but in my case, it the commands only
work dead on spot of
z == 1.51. and
z == 1.50. I want it to make the commands
work for
z == 1.51 and above and not work on
z == 1.50 below.
Re: Need help -
BLAbla93 - 20.05.2010
Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(z >= 1.51)
if(z <= 1.50)
>= greater then or equal
<= less then or equal
hope that is what you ment
Re: Need help -
ViruZZzZ_ChiLLL - 20.05.2010
Quote:
Originally Posted by [T_S
DeStunter ]
Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(z >= 1.51)
if(z <= 1.50)
>= greater then or equal
<= less then or equal
hope that is what you ment
|
Wait, so this means that, I will be able to get the height of 1.51 and above
and 1.50 below?
Re: Need help -
Jonni8 - 20.05.2010
exactly right
Re: Need help -
aircombat - 20.05.2010
= : equal
> : bigger
< : smaller
>= : bigger or equal
<= : smaller or equal
Re: Need help -
ViruZZzZ_ChiLLL - 20.05.2010
THANKS GUYS! O.O It now works perfectly!
Re: Need help -
Miguel - 20.05.2010
Quote:
Originally Posted by Etch ❽ H
= : equal <<<<<<<<<<<
> : bigger
< : smaller
>= : bigger or equal
<= : smaller or equal
|
Re: Need help -
aircombat - 20.05.2010
sometimes its = and sometimes its ==
like u can do new Color = 0;
Re: Need help -
BLAbla93 - 21.05.2010
wrong
= is to set a variable and == is to check if 2 items are equal