Quote:
Originally Posted by CodeMatrix
Quote:
Originally Posted by Burridge
Quote:
Originally Posted by CodeMatrix
Код:
if(GetPlayerMoney(playerid) > 500) return 1;
GetPlayerMoney returns the player money without using a referenced parameter, so you should compare the returned value to a value outside the function's brackets.
|
You're missing the extra bracket,
Код:
if(GetPlayerMoney(playerid) > 500)) return 1;
Remember playerid also has a bracket, so it needs that extra one at the end, or it won't work.
|
..? 2 opening brackets, 2 closing brackets... it's correct
Код:
if(GetPlayerMoney(playerid) > 500) return 1;
|
Ohh, I see what you did. Sorry.