Need some help
#6

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
Use some messages to know where the problem is.

pawn Код:
if(!strcmp(cmdtext, "/Buygun", true))
{
    if(IsPlayerInArea(playerid,50,2444.3787,-1976.6405,13.5539))
    {
        if(GetPlayerMoney(playerid) >= 100)
        {
            GivePlayerWeapon(playerid,22,100);
            GivePlayerMoney(playerid, -100);
            SendClientMessage(playerid, 0xFFFFFFFF, "You have bought a weapon");
        }
        else
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "You don't have enough money");
        }
    }
    else
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "You are not in the area");
    }
    return 1;
}
Some how you fixed it whit that code o.O The problem was that i clouden buy it when i had over 100$ but now i can thank you (:
Reply


Messages In This Thread
Need some help - by Basker101 - 23.09.2010, 12:08
Re: Need some help - by Desert - 23.09.2010, 12:12
Re: Need some help - by Mikkel_Pedersen - 23.09.2010, 12:16
Re: Need some help - by Basker101 - 23.09.2010, 12:30
Re: Need some help - by MadeMan - 23.09.2010, 12:35
Re: Need some help - by Basker101 - 23.09.2010, 12:43

Forum Jump:


Users browsing this thread: 2 Guest(s)