Teleport Dialog Errors
#4

pawn Код:
#include "a_samp"

#define DIALOG_TELEPORTS 1


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if ( response )
{
if( dialogid == DIALOG_TELEPORTS )
{
switch( listitem )
{
case 0: ShowPlayerDialog(playerid, 65, 2, "Stunts", "Abandoned Farm\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 1: ShowPlayerDialog(playerid, 66, 2, "Hotspots", "Abandoned Farm\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 2: ShowPlayerDialog(playerid, 67, 2, "Interiors", "A\nA\nA", "OK", "Cancel" );
case 3: ShowPlayerDialog(playerid, 65, 2, "Houses", "CJ's House(/cj)\nSan Fierro Beach\nLas Venturas Airport", "OK", "Cancel" );
case 4: ShowPlayerDialog(playerid, 65, 2, "Cities", "Los Santos\nSan Fierro\nLas Venturas\nLiberty City\nEl Quebrados", "OK", "Cancel" );
}
}
return 1;
}

if ( dialogid == 65 )
{
if ( response )
{
GameTextForPlayer(playerid, "~g~Abandoned Farm~n~~w~/af", 6000, 3 );
SetPlayerPos(playerid,-45.9522,-13.4273,5.6389 );
SetPlayerFacingAngle(playerid,245 );
SetPlayerInterior(playerid,0 );
}
return 1;
}
return 0;
}
change the id of the dialogues that will be the only problem you will not work.
Reply


Messages In This Thread
Teleport Dialog Errors - by Mobeen - 26.04.2014, 21:18
Re: Teleport Dialog Errors - by Mobeen - 27.04.2014, 01:10
AW: Teleport Dialog Errors - by Macronix - 27.04.2014, 02:25
Respuesta: Teleport Dialog Errors - by Snoopythekill - 27.04.2014, 05:08
Re: Teleport Dialog Errors - by Mobeen - 27.04.2014, 09:55
Re: Teleport Dialog Errors - by Eth - 27.04.2014, 10:07
Re: Respuesta: Teleport Dialog Errors - by Eth - 28.04.2014, 00:29

Forum Jump:


Users browsing this thread: 3 Guest(s)