Need help
#9

Quote:
Originally Posted by Hiddos
Quote:
Originally Posted by ViruZZzZ_ChiLLL
Quote:
Originally Posted by Fj0rtizFredde
Your code check's if the player has less then 5 coins :P
make it like:
pawn Код:
if(coin[playerid] > 5) return SendClientMessage(playerid, Red, "ERROR : You can only have 5 coins!");
coin[playerid] += 1;
It still lets me use /buycoins even though I already have 5
OMG, this is really confusing
That is checking if he has more then 5 coins, so 6 would apply.


pawn Код:
if(coin[playerid] >= 5) return SendClientMessage(playerid, Red, "ERROR : You can only have 5 coins!");
coin[playerid] += 1;
Still... I can /buycoins even though I already have 100000 of them
Reply


Messages In This Thread
Need help - by ViruZZzZ_ChiLLL - 24.05.2010, 14:45
Re: Need help - by ViruZZzZ_ChiLLL - 24.05.2010, 14:51
Re: Need help - by AK47KILLA - 24.05.2010, 15:19
Re: Need help - by Hiddos - 24.05.2010, 15:35
Re: Need help - by ViruZZzZ_ChiLLL - 24.05.2010, 15:35
Re: Need help - by Fj0rtizFredde - 24.05.2010, 15:42
Re: Need help - by ViruZZzZ_ChiLLL - 24.05.2010, 15:47
Re: Need help - by Hiddos - 24.05.2010, 15:49
Re: Need help - by ViruZZzZ_ChiLLL - 24.05.2010, 16:13
Re: Need help - by aircombat - 24.05.2010, 16:16

Forum Jump:


Users browsing this thread: 2 Guest(s)