Errors in menu creating
#1

Код:
//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!
Reply
#2

So no1's able to fix this?
Reply
#3

Hmm,i can suggest to use a menu creator

This one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)