27.07.2014, 12:26
Why this isn't working?
I can still take away drugs from player even if he has less drugs than amount I want to take.. ?
pawn Код:
if(amount > Pdrug[gpid][Weed])
{
Pdrug[gpid][Weed] -= amount;
format(string, sizeof(string), "* %s took %d gram(s) of weed from you", sendername, amount);
SendClientMessage(gpid, 0x33CCFFAA, string);
}
else
{
SendClientMessage(playerid, -1, "{FF6A22}INFO:{FFFFFF} That player doesn't have so much weed");
}