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;