Script :
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 23)
{
if(response)
{
if(listitem == 0)ShowPlayerDialog(playerid,24,DIALOG_STYLE_LIST,\"Alap Teleportok\",\"Los Santos\\nSan Fierro\\nLast Venturas\\nArea51\\nSkatePark\\nChilliad\",\"Teleport\",\"Cancel\");
if(listitem == 1)ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,\"Repterek\",\"Los Santos Repülötér\\nSan Fiero Reptér\\nLast Venturas Reptér\\nRégi Reptér\",\"Teleport\",\"Cancel\");
if(listitem == 2)ShowPlayerDialog(playerid,26,DIALOG_STYLE_LIST,\"Driftek\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\nDrift5\",\"Teleport\",\"Cancel\");
}
return 1;
}
if(dialogid == 24)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),2496.4656,-1669.8828,13.3359);
} else {
SetPlayerPos(playerid,2496.4656,-1669.8828,13.3359);
}
SetPlayerInterior(playerid, 0);
}
case 1:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),-1970.5830,287.8890,35.1719);
} else {
SetPlayerPos(playerid,-1970.5830,287.8890,35.1719);
}
SetPlayerInterior(playerid, 0);
}
case 2:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),2086.6035,1683.4514,10.8203);
} else {
SetPlayerPos(playerid,2086.6035,1683.4514,10.8203);
}
SetPlayerInterior(playerid, 0);
}
case 3:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 201.9920,1897.7946,17.6406);
} else {
SetPlayerPos(playerid, 201.9920,1897.7946,17.6406);
}
SetPlayerInterior(playerid, 0);
}
case 4:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), 1914.2083,-1441.6256,13.5225);
} else {
SetPlayerPos(playerid, 1914.2083,-1441.6256,13.5225);
}
SetPlayerInterior(playerid, 0);
}
case 5:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2305.4172,-1656.9608,483.6725);
} else {
SetPlayerPos(playerid,-2305.4172,-1656.9608,483.6725);
}
SetPlayerInterior(playerid, 0);
}
}
}
return 1;
}
if(dialogid == 25)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),1412.8171,-2435.1362,13.5766);
} else {
SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766);
SetPlayerInterior(playerid, 0);
}
case 1:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),-1567.6731,-179.2296,14.1484);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484);
}
case 2:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),1529.6984,1799.4802,10.8344);
} else {
SetPlayerPos(playerid,1529.6984,1799.4802,10.8344);
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 301.5956);
}
case 3:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),373.8240,2472.2849,16.4844);
} else {
SetPlayerPos(playerid,373.8240,2472.2849,16.4844);
}
SetPlayerInterior(playerid, 0);
SetPlayerFacingAngle(playerid, 301.5956);
}
}
}
return 1;
}
if(dialogid == 26)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),-330.3562,1529.4213,75.3594);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-330.3562,1529.4213,75.3594);
SetPlayerFacingAngle(playerid, 301.5956);
}
case 1:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),2286.1074,1390.0565,43);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2286.1074,1390.0565,43);
SetPlayerFacingAngle(playerid, 301.5956);
}
case 2:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2409.4253,-600.0413,132.5273);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-2409.4253,-600.0413,132.5273);
SetPlayerFacingAngle(playerid, 301.5956);
}
case 3:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2117.6387,-762.7694,32.0234);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,-2117.6387,-762.7694,32.0234);
SetPlayerFacingAngle(playerid, 301.5956);
}
case 4:
{
if(IsPlayerInAnyVehicle(playerid))
{
SetPlayerInterior(playerid, 0);
SetVehiclePos(GetPlayerVehicleID(playerid),1610.1160,-1541.4785,13.3179);
} else {
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1610.1160,-1541.4785,13.3179);
SetPlayerFacingAngle(playerid, 301.5956);
}
}
}
}
return 0;
}[/pawn]
HIBÁK:
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(503) : error 014: invalid statement; not in switch
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(503) : warning 215: expression has no effect
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(503) : error 001: expected token: \";\", but found \":\"
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(503) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(503) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
nagyon megköszöném a helpet :D