26.10.2014, 14:00
hey guys .. i wanted to make fast Teleport CMD with showplayer dialog .. i did it and when i want compile pawno is stop working can u tell me whati have wrong .
And Here
Код HTML:
if(dialogid == 20322 && response) { switch(listitem { case 0: { ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Vinewood\nSpawn\nMtavroba", "Tele", "Exit"); } } } if(dialogid == 20323 && response) { switch(listitem) { case 0; { SetPlayerPos(playerid, 1510.0826,-848.4471,65.5869); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi Vinewoodtan"); } case 1; { SetPlayerPos(playerid, 1118.1058,-1749.1381,13.6181); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi Spawntan"); } case 2; { SetPlayerPos(playerid, -2405.9446,343.1351,35.0238); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_YELLOW, "Shen Gadateleportdi SFs Mtavrobastan"); } } } return 1;
Код HTML:
if(strcmp(cmd, "/teleport", true) == 0) { ShowPlayerDialog(playerid, 20323, DIALOG_STYLE_LIST, "Teleport", "Vinewood\nSpawn\nMtavroba", "Tele", "Exit"); return 1; }