PlayerText Commands
#1

pawn Код:
if(buyfood[playerid] == 1)
    {
        if (strcmp(text,"1",true) == 0)
        {
        new Playermoney = GetPlayerMoney(playerid);
        if (Playermoney >= 1)
        {
            SetPlayerHealth(playerid, eHealth+5);
            buyfood[playerid] = 1;
            return 0;
        }
        SendClientMessage(playerid,RED,"You don't have enough money to buy this!");
        return 1;
    }
Right for some reason when this command is being used, In chat I keep saying 1. How can I stop this? my code is right isn't?
Reply


Messages In This Thread
PlayerText Commands - by Fugative. - 25.02.2010, 18:17
Re: PlayerText Commands - by wafffllesss - 25.02.2010, 18:27
Re: PlayerText Commands - by Fugative. - 25.02.2010, 18:46
Re: PlayerText Commands - by VonLeeuwen - 25.02.2010, 19:01
Re: PlayerText Commands - by Torran - 25.02.2010, 19:06
Re: PlayerText Commands - by VonLeeuwen - 25.02.2010, 19:09
Re: PlayerText Commands - by Torran - 25.02.2010, 19:15
Re: PlayerText Commands - by VonLeeuwen - 26.02.2010, 07:24

Forum Jump:


Users browsing this thread: 1 Guest(s)