Help! Menu Created Defined Pawno says: Undefined
#1

Hello

I Have got a script (PAWNO)
And ive create a menu.
What do i wrong?

At the top of the script i have defined the menu:

new Menu:Teleports1;
new Menu:Teleports2;
new Menu:Teleports3;
new Menu:Teleports4;
new Menu:Teleports5;

This is my menu at OnGameModeInt:

Teleports1 = CreateMenu("Teleports 1",3,200,200,400,35);
AddMenuItem(Teleports1, 0, "Bigjump");
AddMenuItem(Teleports1, 0, "Bigjump 2");
AddMenuItem(Teleports1, 0, "LS Tower");
AddMenuItem(Teleports1, 0, "Building Jump");
AddMenuItem(Teleports1, 0, "Chilliad");
AddMenuItem(Teleports1, 0, "SF Airport");
AddMenuItem(Teleports1, 0, "LV Airport");
AddMenuItem(Teleports1, 0, "Next Page");

Teleports2 = CreateMenu("Teleports 2",3,200,200,400,35);
AddMenuItem(Teleports2, 0, "Way to Death");
AddMenuItem(Teleports2, 0, "Stadium");
AddMenuItem(Teleports2, 0, "Monster Crash");
AddMenuItem(Teleports2, 0, "Freeway");
AddMenuItem(Teleports2, 0, "Dead Jump");
AddMenuItem(Teleports2, 0, "Upside Down");
AddMenuItem(Teleports2, 0, "Skatepark");
AddMenuItem(Teleports2, 0, "Next Page");

Teleports3 = CreateMenu("Teleports 3",3,200,200,400,35);
AddMenuItem(Teleports3, 0, "LS Station");
AddMenuItem(Teleports3, 0, "SF Station");
AddMenuItem(Teleports3, 0, "LV Station 1");
AddMenuItem(Teleports3, 0, "LV Station 2");
AddMenuItem(Teleports3, 0, "BloodringArena");
AddMenuItem(Teleports3, 0, "Airbattle");
AddMenuItem(Teleports3, 0, "Next Page");

Teleports4 = CreateMenu("Teleports 4",3,200,200,400,35);
AddMenuItem(Teleports4, 0, "MinigunMaddness");
AddMenuItem(Teleports4, 0, "Shipmaddnes");
AddMenuItem(Teleports4, 0, "Glassmadness");
AddMenuItem(Teleports4, 0, "Derby");
AddMenuItem(Teleports4, 0, "RCWar");
AddMenuItem(Teleports4, 0, "Abandoned Airport");
AddMenuItem(Teleports4, 0, "Dirt");
AddMenuItem(Teleports4, 0, "Drift");
AddMenuItem(Teleports4, 0, "Next Page");

Teleports5 = CreateMenu("Teleports 5",3,200,200,400,35);
AddMenuItem(Teleports5, 0, "TuneGarage1");
AddMenuItem(Teleports5, 0, "TuneGarage2");
AddMenuItem(Teleports5, 0, "TuneGarage3");
AddMenuItem(Teleports5, 0, "TuneGarage4");
AddMenuItem(Teleports5, 0, "LV TruckStop");
AddMenuItem(Teleports5, 0, "C Truckstop");
AddMenuItem(Teleports5, 0, "D Truckstop");

This are my errors:

C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (40) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (41) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (42) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (43) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (44) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (45) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (46) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (47) : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (4 : error 017: undefined symbol "Teleports1"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (50) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (51) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (52) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (53) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (54) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (55) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (56) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (57) : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (5 : error 017: undefined symbol "Teleports2"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (60) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (61) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (62) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (63) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (64) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (65) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (66) : error 017: undefined symbol "Teleports3"
C:\DOCUME~1\Swen\Desktop\SUEDIT~1\GAMEMO~1\SU2.pwn (67) : error 017: undefined symbol "Teleports3"
Reply
#2

Make sure you do it like here

Or use this
Reply
#3

The Second link helped me a much thank you!
Reply
#4

The problem was " 's not at either side of the menu name.
Reply
#5

Quote:
Originally Posted by Oxside
The Second link helped me a much thank you!
No problem ,glad to help
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)