[SOLVED]4 invalid function or declaration
#5

Quote:
Originally Posted by gamer_Z
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new Money = GetPlayerMoney(playerid);
    if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                if(Money > 49)
                {
                    SendClientMessage(playerid, 0x21DD00FF, "You Bough A Desert Deagle");
                    GivePlayerWeapon(playerid,24,50);
                    GivePlayerMoney(playerid,-50);
                }
            }
            if(listitem == 1)
            {
                if(Money > 74)
                {
                    SendClientMessage(playerid, 0x21DD00FF, "You Bough A Country Rifle");
                    GivePlayerWeapon(playerid,33,30);
                    GivePlayerMoney(playerid,-75);
                }
            }  
        }
        else
        {
            SendClientMessage(playerid, 0x21DD00FF, "You Exited From Shop Menu");
        }
    }
    return 1;
}

... man you should learn pawn better...

you've closed the public and then scripted forward in the global script section....
which made this errors..
Thanks i learned New Thing Today
Reply


Messages In This Thread
[SOLVED]4 invalid function or declaration - by eDz0r - 22.05.2010, 12:51
Re: [HELP]4 invalid function or declaration - by ViruZZzZ_ChiLLL - 22.05.2010, 12:52
Re: [HELP]4 invalid function or declaration - by eDz0r - 22.05.2010, 12:53
Re: [HELP]4 invalid function or declaration - by Gamer_Z - 22.05.2010, 13:11
Re: [HELP]4 invalid function or declaration - by eDz0r - 22.05.2010, 13:16
Re: [SOLVED]4 invalid function or declaration - by Gamer_Z - 22.05.2010, 13:17

Forum Jump:


Users browsing this thread: 1 Guest(s)