#include <a_samp>new Menu:telemenu; // Teleport#define FILTERSCRIPT#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(\"\\n--------------------------\");print(\"Teleport menu by Admin_Mark\");print(\"----------------------------\\n\");}tele = CreateMenu(\"Teleport menu\", 2, 55.0, 200.0, 100.0, 80.0);CreateMenu(Teleportok, 1, Float:11, Float:12, Float:col1width, Float:col2width);AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 1, \"Négysárkány\");AddMenuItem(teleportmenu, 1, \"Kalózhajó\");AddMenuItem(teleportmenu, 1, \"Kilátó\");AddMenuItem(teleportmenu, 1, \"Reptér\");AddMenuItem(menuid, column, text);public OnFilterScriptExit(){return 1;} #elsemain(){print(\"\\n--------------------------\");print(\"Teleport menu Admin_Mark\");print(\"----------------------------\\n\");}#endifif(strcmp(cmdtext, \"/teleport\", true) == 0){ ShowMenuForPlayer(teleportmenu,playerid); return 1;}public OnPlayerSelectedMenuRow(new Menu:CurrentMenu = GetPlayerMenu(playerid);if(CurrentMenu == teleportmenu){ switch(row) { case 0: // Négysárkány { SetPlayerPos(playerid, 2030.5493,1005.9794,10.8203); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a 4sárkány kaszinónál!\"); } case 1: // Kalózhajó { SetPlayerPos(playerid, 2005.7351,1544.1106,13.5228); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a kalózhajónál!\"); } case 2: // Kilátó { SetPlayerPos(playerid, 1937.1575,1627.7998,72.2578); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a kilátónál!\"); } case 3: // Reptér { SetPlayerPos(playerid, 1316.5859,1268.2867,10.8203); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a reptérnél!\"); } } } public OnPlayerExitedMenu(playerid){ TogglePlayerControllable(playerid, true);return 1;}
#include <a_samp>new Menu:teleportmenu;public OnFilterScriptInit(){print(\"\\n--------------------------\");print(\"Teleport menu by Admin_Mark\");print(\"----------------------------\\n\");teleportmenu = CreateMenu(\"Teleport menu\", 2, 55.0, 200.0, 100.0, 80.0);CreateMenu(\"Teleportok\", 2, 55.0, 200.0, 100.0, 80.0);AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 0, \"LV\");AddMenuItem(teleportmenu, 1, \"Négysárkány\");AddMenuItem(teleportmenu, 1, \"Kalózhajó\");AddMenuItem(teleportmenu, 1, \"Kilátó\");AddMenuItem(teleportmenu, 1, \"Reptér\");return 1;}public OnPlayerCommandText(playerid, cmdtext[]){if(strcmp(cmdtext, \"/teleport\", true) == 0){ ShowMenuForPlayer(teleportmenu,playerid); return 1;}return 0;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current;current = GetPlayerMenu(playerid);if(current == teleportmenu){ switch(row) { case 0: // Négysárkány { SetPlayerPos(playerid, 2030.5493,1005.9794,10.8203); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a 4sárkány kaszinónál!\"); } case 1: // Kalózhajó { SetPlayerPos(playerid, 2005.7351,1544.1106,13.5228); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a kalózhajónál!\"); } case 2: // Kilátó { SetPlayerPos(playerid, 1937.1575,1627.7998,72.2578); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a kilátónál!\"); } case 3: // Reptér { SetPlayerPos(playerid, 1316.5859,1268.2867,10.8203); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, 0xFFFFFFFF, \"Üdv a reptérnél!\"); } } }}public OnPlayerExitedMenu(playerid){ TogglePlayerControllable(playerid, true);return 1;}
C:\\Program Files\\Rockstar Games\\tele.pwn(16) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(18) : error 021: symbol already defined: \"CreateMenu\"C:\\Program Files\\Rockstar Games\\tele.pwn(20) : error 021: symbol already defined: \"AddMenuItem\"C:\\Program Files\\Rockstar Games\\tele.pwn(25) : error 021: symbol already defined: \"AddMenuItem\"C:\\Program Files\\Rockstar Games\\tele.pwn(30) : error 021: symbol already defined: \"AddMenuItem\"C:\\Program Files\\Rockstar Games\\tele.pwn(49) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(52) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(57) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(57) : warning 221: label name \"Menu\" shadows tag nameC:\\Program Files\\Rockstar Games\\tele.pwn(57) : warning 203: symbol is never used: \"Menu\"C:\\Program Files\\Rockstar Games\\tele.pwn(57) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(57 -- 59) : error 010: invalid function or declarationC:\\Program Files\\Rockstar Games\\tele.pwn(57 -- 59) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 11 Errors.