HELP!?!? dialog doesnt open!
#5

You could try this...

Under your public OnDialogResponse, don't do "switch(dialogid)"
do if(dialogid == 1) and then the rest.

So it will be like:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(!response)
        {
            SendClientMessage(playerid, COLOR_RED, "You cancelled!");
        }
        switch(listitem)
        {
            case 0:
            {
                new Float:X, Float:Y, Float:Z, Float:ROT;
                GetPlayerPos(playerid,X,Y,Z);
                GetPlayerFacingAngle (playerid,ROT);
                SpawnedVehicles[playerid] = CreateVehicle(400,X,Y,Z,ROT,-1,-1,60);
            }
        }
      }
    return 1;
}
If this doesn't work try to print something when your command is called.
Reply


Messages In This Thread
HELP!?!? dialog doesnt open! - by BigAl - 23.11.2010, 20:06
Re: HELP!?!? dialog doesnt open! - by [L3th4l] - 23.11.2010, 20:08
Re: HELP!?!? dialog doesnt open! - by Mauzen - 23.11.2010, 20:09
Re: HELP!?!? dialog doesnt open! - by BigAl - 23.11.2010, 20:12
Re: HELP!?!? dialog doesnt open! - by Alex_Valde - 23.11.2010, 20:22
Re: HELP!?!? dialog doesnt open! - by DRIFT_HUNTER - 23.11.2010, 20:23
Re: HELP!?!? dialog doesnt open! - by BigAl - 23.11.2010, 20:40

Forum Jump:


Users browsing this thread: 1 Guest(s)