Need help with dialog response
#2

pawn Код:
switch(dialogid)
{
    case 1:
    {
        if(!response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "You Canceled");
            return 1;
        }
        switch(listitem)
        {
            case 0:
            {
                SetPlayerSkin(playerid,280);
                SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
            }
            case 1:
            {
                SetPlayerSkin(playerid,281);
                SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
            }
            case 2:
            {
                SetPlayerSkin(playerid,282);
                SendClientMessage(playerid,COLOR_SEAGREEN,"Welcome to Duty USPD Officer");
            }
        }
    }
    case 253:
    {
        if(!response)
        {
            SendClientMessage(playerid, 0xFF0000FF, "You Canceled");
            return 1;
        }
        switch(listitem)
        {
            case 0:
            {
                // Silence $500
            }
            case 1:
            {
                // AK-47 $2000
            }
            case 2:
            {
                // M4 $3000
            }
            // add case 3, case 4 etc.
        }
    }
}
Reply


Messages In This Thread
Need help with dialog response - by ZBits - 02.07.2012, 09:07
Re: Need help with dialog response - by MadeMan - 02.07.2012, 09:22
Re: Need help with dialog response - by ZBits - 02.07.2012, 09:35
Re: Need help with dialog response - by ZBits - 02.07.2012, 10:55
Re: Need help with dialog response - by ZBits - 02.07.2012, 10:59
Re: Need help with dialog response - by ZBits - 07.07.2012, 05:47
Re: Need help with dialog response - by [MM]RoXoR[FS] - 07.07.2012, 06:43

Forum Jump:


Users browsing this thread: 2 Guest(s)