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 ![Sad](images/smilies/sad.gif)
OMG, this is really confusing ![undecided](images/smilies/neutral.gif)
|
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