#include <a_samp>new Menu:tele;public OnGameModeInit(){ tele = CreateMenu(\"Teleport Men¬\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(tele, 0, \"Kezdohely\"); AddMenuItem(tele, 0, \"LV Kaszino\"); AddMenuItem(tele, 0, \"Oldairport\"); AddMenuItem(tele, 0, \"Drift1\"); AddMenuItem(tele, 0, \"Lvrepter\"); AddMenuItem(tele, 0, \"LsStunt\"); AddMenuItem(tele, 0, \"LsDm\"); AddMenuItem(tele, 0, \"LsGn\"); AddMenuItem(tele, 0, \"LvDm\"); return 1;}public OnPlayerSelectedMenuRow(playerid, row){ new Menu:current; current = GetPlayerMenu(playerid); if(current == tele) { switch(row) { case 0:SetPlayerPos(playerid, 2023.8479,1910.1281,12.2894); } switch(row) { case 1:SetPlayerPos(playerid, 2025.9379,1006.9901,10.8203); } switch(row) { case 2:SetPlayerPos(playerid, 420.9306,2527.7849,16.5984,125); } switch(row) { case 3:SetPlayerPos(playerid, -616.4122,2032.1649,60.3828); } switch(row) { case 4:SetPlayerPos(playerid, 1315.9742,1508.1925,10.8203); } switch(row) { case 5:SetPlayerPos(playerid, 2597.9321,-1981.5410,3.8594); } switch(row) { case 6:SetPlayerPos(playerid, 2590.6931,-1304.7251,81.1481);} switch(row) { case 7:SetPlayerPos(playerid, 1427.7222,-806.6459,86.4655); } return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/tele\", cmdtext, true, 4) == 0) { ShowMenuForPlayer(tele, playerid); return 1;} return 0;}
E:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(26) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(34) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(40) : warning 202: number of arguments does not match definitionE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(46) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(66) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(69) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(69) : error 029: invalid expression, assumed zeroE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(69) : error 004: function \"OnPlayerCommandText\" is not implementedE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(71) : error 017: undefined symbol \"cmdtext\"E:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(74) : warning 217: loose indentationE:\\Documents and Settings\\Tímár Bence\\Asztal\\stunt 2010\\filterscripts\\teleportmenu.pwn(78) : error 030: compound statement not closed at the end of file (started at line 25)Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors. [/quote]
#include <a_samp>new Menu:tele;public OnGameModeInit(){ tele = CreateMenu(\"Teleport Men¬\", 2, 55.0, 200.0, 100.0, 80.0); AddMenuItem(tele, 0, \"Kezdohely\"); AddMenuItem(tele, 0, \"LV Kaszino\"); AddMenuItem(tele, 0, \"Oldairport\"); AddMenuItem(tele, 0, \"Drift1\"); AddMenuItem(tele, 0, \"Lvrepter\"); AddMenuItem(tele, 0, \"LsStunt\"); AddMenuItem(tele, 0, \"LsDm\"); AddMenuItem(tele, 0, \"LsGn\"); AddMenuItem(tele, 0, \"LvDm\"); return 1;}public OnPlayerSelectedMenuRow(playerid, row){new Menu:current;current = GetPlayerMenu(playerid);if(current == tele){switch(row) { case 0:SetPlayerPos(playerid, 2023.8479,1910.1281,12.2894); case 1:SetPlayerPos(playerid, 2025.9379,1006.9901,10.8203); case 2:SetPlayerPos(playerid, 420.9306,2527.7849,16.5984); case 3:SetPlayerPos(playerid, -616.4122,2032.1649,60.3828); case 4:SetPlayerPos(playerid, 1315.9742,1508.1925,10.8203); case 5: { SetPlayerPos(playerid, 2597.9321,-1981.5410,3.8594); GivePlayerWeapon(playerid, 24, 5000); GivePlayerWeapon(playerid, 29, 5000); GivePlayerWeapon(playerid, 30, 5000); } case 6:SetPlayerPos(playerid, 2590.6931,-1304.7251,81.1481); case 7: { SetPlayerPos(playerid, 1427.7222,-806.6459,86.4655); GivePlayerWeapon(playerid, 24, 5000); GivePlayerWeapon(playerid, 29, 5000); GivePlayerWeapon(playerid, 30, 5000); }}} return 1;}public OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp(\"/tele\", cmdtext, true, 4) == 0) { ShowMenuForPlayer(tele, playerid); return 1;} return 0;}