GetPlayerScore Error
#1

Hey.

Код:
if(GetPlayerScore(playerid) > 50 && < 200) //Sniper
I want to write "If the player score is greater than 50 and less than 200 then..."

How would I go about writing this code? It gives me errors when I write that.
ERRORS:
Код:
C:\Users\X\Desktop\X\gamemodes\X.pwn(1257) : error 029: invalid expression, assumed zero
C:\Users\X\Desktop\X\gamemodes\X.pwn(1257) : warning 215: expression has no effect
C:\Users\X\Desktop\X\gamemodes\X.pwn(1257) : error 001: expected token: ";", but found ")"
C:\Users\X\Desktop\X\gamemodes\X.pwn(1257) : error 029: invalid expression, assumed zero
Any help is appreciated. Thank you!
Reply
#2

new score = GetPlayerScore(playerid);

if(score > 50 && score < 200)


Try your code with an extra bracket ")" at the end before trying mine.
Reply
#3

No errors now, thank you so much!
Reply
#4

No problem & happy to help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)