I suck at OnPlayerDeath :D
#7

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.
Reply


Messages In This Thread
I suck at OnPlayerDeath :D - by coole210 - 08.08.2009, 19:37
Re: I suck at OnPlayerDeath :D - by Chrham_2 - 08.08.2009, 19:51
Re: I suck at OnPlayerDeath :D - by Burridge - 08.08.2009, 19:54
Re: I suck at OnPlayerDeath :D - by XPlatform - 08.08.2009, 19:59
Re: I suck at OnPlayerDeath :D - by Burridge - 08.08.2009, 20:03
Re: I suck at OnPlayerDeath :D - by XPlatform - 08.08.2009, 20:40
Re: I suck at OnPlayerDeath :D - by Burridge - 08.08.2009, 20:56
Re: I suck at OnPlayerDeath :D - by XPlatform - 08.08.2009, 21:03

Forum Jump:


Users browsing this thread: 1 Guest(s)