KeyPad Problem [HELP] -
Sting. - 01.01.2012
I created a keypad, door's and everything. Everything is working fine. See, I want player's with the score 100 to access that office.(The Office with keypad's and door's.) So, I did...
if(IsPlayerInRangeOfPoint(playerid, 1.0, .........))
{
if(GetPlayerScore(playerid < 100))
{
MoveObject(officedoor, ..........);
MoveObject(officedoor2, .............);
SetTimerEx("officedoorclose", 5000, false, "i", playerid);
ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 10.0, 0, 0, 0, 0, 0);
}
}
Sorry, I don't know how to do in PAWN code. So, there are no errors. Now as you see... I did if(GetPlayerScore(playerid < 100))
So I tried with a player with score 0. I hit F and the door open's!.
So again I tried with a player with the score 100. I hit F and the door doesn't open!
So, now how do I make the door open for player's with the score 100 and above?
Re: KeyPad Problem [HELP] -
Steven82 - 01.01.2012
Have you tried flipping the carrot?
From "<" to ">"..
Re: KeyPad Problem [HELP] -
[HiC]TheKiller - 01.01.2012
pawn Код:
if(GetPlayerScore(playerid < 100))
Should actually be
pawn Код:
if(GetPlayerScore(playerid) > 100)
Re: KeyPad Problem [HELP] -
Sting. - 01.01.2012
Thanks! I'll try. But I want to ask then.. "<" means ? for vehicles... ?
Re: KeyPad Problem [HELP] -
[C]ave[M]an - 01.01.2012
Quote:
Originally Posted by RTR12
Thanks! I'll try. But I want to ask then.. "<" means ? for vehicles... ?
|
">" means greater than ... It is for the amount .
pawn Код:
if(GetPlayerScore(playerid) >= 100)
Re: KeyPad Problem [HELP] -
Sting. - 01.01.2012
Thank You.
Re: KeyPad Problem [HELP] -
jamesbond007 - 01.01.2012
">" ?? omgg what does this mean? remember 2nd grade math ?? -.-
xD No offence
Re: KeyPad Problem [HELP] -
Gh05t_ - 01.01.2012
Quote:
Originally Posted by jamesbond007
">" ?? omgg what does this mean? remember 2nd grade math ?? -.-
xD No offence
|
Math is quite different to programming. We haven't been taught relational, binary, bitwise nor logical operators in advanced math. This is because the usage of the purpose of these in programming differentiates between the usage and purpose math.