21.05.2011, 07:41
Hi, I've made a dialog but theres a problem, the are no errors.
But when I open 'tmenu' and select 'Stuntzones and Spawns' then for example I choose Abandond Airport(/aa) Nothing happends, I can't see anything wrong or anything that might be interfering with it, like, I have removed all my dialog filterscripts... But still no and thats all of my teleports /aa, /dam , /lvair and whatever else.
Heres my code, I have searched for help already but no results helped or/and matched my problem.
I hope someone will see it
Thanks
But when I open 'tmenu' and select 'Stuntzones and Spawns' then for example I choose Abandond Airport(/aa) Nothing happends, I can't see anything wrong or anything that might be interfering with it, like, I have removed all my dialog filterscripts... But still no and thats all of my teleports /aa, /dam , /lvair and whatever else.
Heres my code, I have searched for help already but no results helped or/and matched my problem.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{ new string [128];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(dialogid == 1)
{
if(response)
{
if(listitem == 0)
{ new String[350];
format(String,sizeof(String),"Abandond Airport(/aa)\n Las Venturas Airport(/lvair)\n Hoover dam(/dam)",String);
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Stuntzones and spawns",String,"Select","Cancel");
}
if(listitem == 1)
{
}
if(listitem == 2)
{
}
if(listitem == 3)
{
}
if(listitem == 4)
{
}
if(dialogid == 2)
{
if(response)
{
if(listitem == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 384.2457,2535.6484,16.5391);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 144.3246);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
SetPlayerPos(playerid, 387.2781,2460.6428,16.5000);
SetPlayerFacingAngle(playerid, 59.486660);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Welcome to Abandond Airport!");
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has gone to Abandond Airport (/aa)", pName);
SendClientMessageToAll(COLOR_YELLOW, string);
}
if(listitem == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1282.6499,1267.8385,10.8203);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
SetPlayerPos(playerid, 1282.6499,1267.8385,10.8203);
SetPlayerFacingAngle(playerid, 0.0);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Welcome to Las Venturas Stunt Airport!");
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has gone to LV Airport (/lvair)", pName);
SendClientMessageToAll(COLOR_YELLOW, string);
}
if(listitem == 2)
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), -499.5746,2208.4167,42.4960);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.4914);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
}
else
{
SetPlayerPos(playerid, -485.4936,2186.5366,42.4960);
SetPlayerFacingAngle(playerid, 292.1116);
}
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, " Welcome to the Dam!");
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "TELE: %s has gone to Hoover Dam (/dam)", pName);
SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
return 1;
}
}
return 1;
}
Thanks