AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Menu wont show (https://forums.alliedmods.net/showthread.php?t=313307)

tolpecek 01-04-2019 17:02

Menu wont show
 
Code:

                new szMenuaura[512];
                g_glowcost = get_pcvar_num(g_pcvar_glowcost)
               
                  new nLen = format( szMenuaura, 511, "\yAuraShop:^nXP: %d^n", xpcredits[id])

                if(!g_glowORANGE[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w1. \wOranzovy GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w1. \wOranzovy GLOW \r KUPENE");

                if(!g_glowYELLOW[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w2. \wZlty GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w2. \wZlty GLOW \r KUPENE");

                if(!g_glowGREEN[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w3. \wZeleny \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w3. \wZeleny GLOW \r KUPENE");

                if(!g_glowLBLUE[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w4. \wSvetlo modry GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w4. \wSvetlo modry GLOW \r KUPENE");

                if(!g_glowBLUE[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w5. \wModry GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w5. \wModry GLOW \r KUPENE");

                if(!g_glowPURPLE[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w6. \wFialovy GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w6. \wFialovy GLOW \r KUPENE");

                if(!g_glowWHITE[id]) nLen += format( szMenuaura[nLen], 511-nLen, "^n\w7. \wBiely GLOW \wCena: \r%d XP",g_glowcost);
                else nLen += format( szMenuaura[nLen], 511-nLen, "^n\w7. \wBiely GLOW \r KUPENE");

                nLen += format( szMenuaura[nLen], 511-nLen, "^n^n\y0. \wZavrit" );
                show_menu(id,UPGRADES_KEYS,szMenuaura,-1,"aurashophandler")
        }


menu wont show :( any help?

CrazY. 01-04-2019 18:05

Re: Menu wont show
 
Let's wait... hmm... ocixcrom (maybe).

tolpecek 01-04-2019 18:17

Re: Menu wont show
 
Quote:

Originally Posted by CrazY. (Post 2632861)
Let's wait... hmm... ocixcrom (maybe).

?

OciXCrom 01-05-2019 08:34

Re: Menu wont show
 
Why are you using old-style menus? Post everything related to the menu, not just that part. The problem may be in many different places. Any error logs?


All times are GMT -4. The time now is 07:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.