Dialog to Callbacks? Comeon anyone?
#10

lol and it's not working for me..
Btw
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ZCLASS:
        {
            if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
            if(response)
            {
            switch(listitem)
                {
                case 0:
                {
                    if(gTeam[playerid] == Zombie)
                    {
                        new id =  GetClosestPlayer(id);
                        new Float:x,Float:y,Float:z;
                        GetPlayerPos(id,x,y,z);
                        SetPlayerPos(playerid,x,z,z);
                    }
                    case 1:
                    {

                    }
            }
        }
    }
    return 1;
}

        case DIALOG_VCLASS:
        {
            if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
            if(response)
            {
            switch(listitem)
                {
                case 0:
                {
                    if(gTeam[playerid] == Vampire)
                    {
                        new id =  GetClosestPlayer(id);
                        new Float:x,Float:y,Float:z;
                        GetPlayerPos(id,x,y,z);
                        SetPlayerPos(playerid,x,z,z);
                    }
                    case 1:
                    {

                    }
                }
            }
        }
    }
}
and errors
Код:
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 014: invalid statement; not in switch
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : warning 215: expression has no effect
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 001: expected token: ";", but found ":"
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : error 029: invalid expression, assumed zero
C:\Users\Pepsi\Desktop\Scripting\gamemodes\Scripter.pwn(533) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 05:48
Re: Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 06:10
Re: Dialog to Callbacks? Comeon anyone? - by [MM]RoXoR[FS] - 20.06.2012, 06:28
Re: Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 06:30
Re : Dialog to Callbacks? Comeon anyone? - by mehdi-jumper - 20.06.2012, 07:11
Re: Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 07:17
Re: Dialog to Callbacks? Comeon anyone? - by [MM]RoXoR[FS] - 20.06.2012, 07:31
Re: Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 07:34
Re: Dialog to Callbacks? Comeon anyone? - by [MM]RoXoR[FS] - 20.06.2012, 07:43
Re: Dialog to Callbacks? Comeon anyone? - by Rudy_ - 20.06.2012, 08:03

Forum Jump:


Users browsing this thread: 1 Guest(s)