limit
#1

Why this isn't working?

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");
            }
I can still take away drugs from player even if he has less drugs than amount I want to take.. ?
Reply


Messages In This Thread
limit - by Lajko1 - 27.07.2014, 12:26
Re: limit - by Vince - 27.07.2014, 12:27
Re: limit - by Lajko1 - 27.07.2014, 18:27
Re: limit - by Juvanii - 27.07.2014, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)