Dialog help..
#1

Hello guys, I've two question, so here I've this code:

pawn Код:
CMD:shop(playerid, params[]); //zcmd defined.
{
    ShowPlayerDialog(playerid, DIALOG_WEPS, DIALOG_STYLE_LIST, "TEST", "AK-47\nM4\nMP5", "TEST", "TEST");
    return 1;
}
And I know something's missing but I can't find what since I looked everywhere and I didn't see WHAT is actually missing..

So I've this error messages:

pawn Код:
C:\Users\user\Desktop\HZ-Gaming\gamemodes\Hazard.pwn(100) : error 055: start of function body without function header
C:\Users\user\Desktop\HZ-Gaming\gamemodes\Hazard.pwn(102) : error 010: invalid function or declaration
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
The OnDialogResponse has no error lines, and here's the code itself..
pawn Код:
{
    if(dialogid == 1)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
            {
                GivePlayerWeapon(playerid,24, 9999999);
            }
                case 1:
            {
                GivePlayerWeapon(playerid, 31, 500);
            }
                case 2:
            {
                GivePlayerWeapon(playerid, 29 ,9999999);
            }


            }
           
        }
    }
    return 1;
}
So I am not getting what's wrong with my script lol.

2nd question;

How can I use colors at any DIALOG_STYLE?



Thanks ahead.
Reply


Messages In This Thread
Dialog help.. - by CLT - 27.06.2013, 16:05
Re: Dialog help.. - by CLT - 28.06.2013, 07:04
AW: Dialog help.. - by HurtLocker - 28.06.2013, 07:12
Re: Dialog help.. - by CLT - 28.06.2013, 07:15
AW: Dialog help.. - by HurtLocker - 28.06.2013, 07:17
Re: AW: Dialog help.. - by CLT - 28.06.2013, 07:42

Forum Jump:


Users browsing this thread: 2 Guest(s)