Error in creating a menu - 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: Error in creating a menu (
/showthread.php?tid=70073)
Error in creating a menu -
zanakinz - 22.03.2009
this is to complicated for me ive followed the wiki ive used a menu maker ive copied and pasted IVE DONE EVERYTHING I COULD THINK OF!@! can you guys help me?
here is my errors:
Код:
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.
Re: Error in creating a menu -
ICECOLDKILLAK8 - 22.03.2009
Show us your code or we cant help you
Re: Error in creating a menu -
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
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);
}
}
}
Re: Error in creating a menu -
Dujma - 22.03.2009
Did you put that under OnPlayerSelectMenuRow?
Re: Error in creating a menu -
zanakinz - 22.03.2009
yes