SA-MP Forums Archive
Menu bug. - 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)
+--- Thread: Menu bug. (/showthread.php?tid=403285)



Menu bug. - The__ - 29.12.2012

I have a menu, and 1 row is invisible.
Menu code :

pawn Код:
GunM = CreateMenu("Weaponary", 7, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(GunM, 0, "Colt 45 - $1700");
    AddMenuItem(GunM, 0, "Desert Eagle - $4500");
    AddMenuItem(GunM, 0, "Shotgun - $5000");
    AddMenuItem(GunM, 0, "Rifle - $11000 ");
    AddMenuItem(GunM, 0, "Mac10 - $3200");
    AddMenuItem(GunM, 0, "Tec9 - $3200");
    AddMenuItem(GunM, 0, "Kevlar Vest - $3500");
Rifle is invisible...


Re: Menu bug. - hydravink - 29.12.2012

Please look again on the CreateMenu function.Try replacing '7' with '0'
(idk if it works just try lol)


Re: Menu bug. - aslan890 - 29.12.2012

Lol its like a joke

You had space in here check always before posting for help

Код:
GunM = CreateMenu("Weaponary", 7, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(GunM, 0, "Colt 45 - $1700");
    AddMenuItem(GunM, 0, "Desert Eagle - $4500");
    AddMenuItem(GunM, 0, "Shotgun - $5000");
    AddMenuItem(GunM, 0, "Rifle - $11000 ");
    AddMenuItem(GunM, 0, "Mac10 - $3200");
    AddMenuItem(GunM, 0, "Tec9 - $3200");
    AddMenuItem(GunM, 0, "Kevlar Vest - $3500")
Try This:

Код:
GunM = CreateMenu("Weaponary", 7, 50.0, 180.0, 200.0, 200.0);
    AddMenuItem(GunM, 0, "Colt 45 - $1700");
    AddMenuItem(GunM, 0, "Desert Eagle - $4500");
    AddMenuItem(GunM, 0, "Shotgun - $5000");
    AddMenuItem(GunM, 0, "Rifle - $11000");
    AddMenuItem(GunM, 0, "Mac10 - $3200");
    AddMenuItem(GunM, 0, "Tec9 - $3200");
    AddMenuItem(GunM, 0, "Kevlar Vest - $3500")