Errors in menu creating - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors in menu creating (
/showthread.php?tid=70084)
Errors in menu creating -
zanakinz - 22.03.2009
Код:
//Declare
new Menu:teleportmenu;
//OnGameModeInit() Code
teleportmenu = CreateMenu("teleportmenu", 2, 200.0, 100.0, 150.0, 150.0);
AddMenuItem(teleportmenu, 0, "LFS");
AddMenuItem(teleportmenu, 0, "LFS");
AddMenuItem(teleportmenu, 1, "Roof");
AddMenuItem(teleportmenu, 1, "Graveyard");
//Menu Function (yes its in public OnPlayerSelectedMenuRow(playerid, row) )
if(Current == teleportmenu)
{
switch (row)
{
case 1:
{
SetPlayerPos(playerid,2129.7820,-2280.5945,27.3034);
}
case 2:
{
SetPlayerPos(playerid,816.0439,-1100.3785,25.7906);
}
}
}
I have done this with the wiki 1. Link:
https://sampwiki.blast.hk/wiki/Creating_a_simple_Menu
Ive also done another time with Blackfox's menumaker
Here is the error i get everytime i try to do it with either 1:
Код:
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(6219) : error 010: invalid function or declaration
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(6223) : error 010: invalid function or declaration
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(6491) : error 017: undefined symbol "CurrentMenu"
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(6519) : error 017: undefined symbol "current"
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(42187) : warning 203: symbol is never used: "str"
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(44906) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(44906) : warning 203: symbol is never used: "MafiaTele"
C:\Users\Alex\Downloads\PimpTown RPG V1.0\gamemodes\larp3.pwn(44906) : warning 203: symbol is never used: "adminspec"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
PLEASE HELP ME!
Re: Errors in menu creating -
zanakinz - 22.03.2009
So no1's able to fix this?
Re: Errors in menu creating -
graffyk - 22.03.2009
Hmm,i can suggest to use a menu creator
This one