Dialog to Callbacks? Comeon anyone?
#7

Quote:
Originally Posted by Rudy_
Посмотреть сообщение
@Raxor, Nope it needs "switch (dialogid)" and when i add it, it gives errors "Undefined Symbol" GetClosestPlayerToPlayer.
Sorry, my bad
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
    case DIALOG_ZCLASS:
    {
        if(!response) return ShowPlayerDialog(playerid,-1,0,"","","","");
        if(response)
        {
            switch(listitem)// Checking which listitem was selected
            {
                case 0:
                {
                    if(gTeam[playerid] == Zombie)
                    {
                        new id =  GetClosestPlayerToPlayer(playerid);
                        new Float:x,Float:y,Float:z;
                        GetPlayerPos(id,x,y,z);
                        SetPlayerPos(playerid,x,z,z);
                    }
                }
                case 1:
                {
                    //Whatever you want in case 1
                }
            }
        }
    }
    }
}
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: 3 Guest(s)