Why commands dont work?
#1

Hello, why this commands dont work and give me that i'm not in the place to use them? I'm the right place..

Код:
       if (strcmp("/buyrod", cmdtext, true, 10) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359) && GetPlayerMoney(playerid) >= 400)
                {
                        if(FRod[playerid] == 0)
                        {
                        FRod[playerid] = 1;
                    SendClientMessage(playerid,0xFFFFFFFF, "Fishing Rod {88AA88}Bought!");
                    SendClientMessage(playerid,0xFFFFFFFF, "/TakeRod to Take it out!");
                    GivePlayerMoney(playerid,-400);
                    }
                    else
                        {
                        SendClientMessage(playerid,0xCD0000FF, "You already got Fishing Rod, you may /takerod !");
                        SendClientMessage(playerid,0xCD0000FF, "Or mabye you don't have enough cash to buy it !");
                        }
                    return 1;
                }
                return SendClientMessage(playerid,0xCD0000FF, "You are not around Fish Market !");
        }
        if (strcmp("/buybait", cmdtext, true, 10) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359) && GetPlayerMoney(playerid) >= 250)
                {
                        if(Bait[playerid] == 0)
                        {
                        Bait[playerid] = 1;
                    SendClientMessage(playerid,0xFFFFFFFF, " Mixed Baits {88AA88}Bought!");
                    GivePlayerMoney(playerid,-250);
                    }
                    else
                        {
                        SendClientMessage(playerid,0xCD0000FF, "You already got Mixed Baits left!");
                        SendClientMessage(playerid,0xCD0000FF, "Or mabye you don't have enough cash to buy it!");
                        }
                    return 1;
                }
                return SendClientMessage(playerid,0xCD0000FF, "You are not around Fish Market !");
        }
        if (strcmp("/buyline", cmdtext, true, 10) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 2, 387.8272,-1870.7032,7.8359) && GetPlayerMoney(playerid) >= 400)
                {
                        if(FLine[playerid] == 0)
                        {
                        FLine[playerid] = 10;
                    SendClientMessage(playerid,0xFFFFFFFF, "Fishing Line {88AA88}Bought!");
                    GivePlayerMoney(playerid,-400);
                        }
                    else
                        {
                        SendClientMessage(playerid,0xCD0000FF, "You already got Fishing Lines !");
                        }
                    return 1;
                }
                return SendClientMessage(playerid,0xCD0000FF, "You are not around Fish Market !");
        }
Reply


Messages In This Thread
Why commands dont work? - by dundolina - 19.05.2015, 20:43
Re: Why commands dont work? - by Konstantinos - 19.05.2015, 21:05
Re: Why commands dont work? - by dundolina - 19.05.2015, 21:17
Re: Why commands dont work? - by PowerPC603 - 19.05.2015, 21:21
Re: Why commands dont work? - by dundolina - 19.05.2015, 21:54
Re: Why commands dont work? - by tooMuch - 19.05.2015, 22:10
Re: Why commands dont work? - by dundolina - 19.05.2015, 22:35
Re: Why commands dont work? - by tooMuch - 19.05.2015, 22:38
Re: Why commands dont work? - by dundolina - 19.05.2015, 22:48
Re: Why commands dont work? - by tooMuch - 19.05.2015, 22:55

Forum Jump:


Users browsing this thread: 2 Guest(s)