AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   aww (https://forums.alliedmods.net/showthread.php?t=222202)

Kellan123 07-31-2013 03:03

aww
 
OLD

ConnorMcLeod 07-31-2013 03:07

Re: Menu Problem
 
Cool, next time you gonna explain what is the bug. And the time after you going to post missing code.
And one day, someone gonna help you.

Kellan123 07-31-2013 03:10

Re: Menu Problem
 
dasdasd

ConnorMcLeod 07-31-2013 03:16

Re: Menu Problem
 
Again, we need the global variable.

Without seeing it, can just say that arguments are not passed in the correct order and that should rather be :

PHP Code:

formatex(szMenucharsmax(szMenu), gszBlockMenucolgszBlockNames[gSelectedBlockType[id]], colszSizecolcolcolcolszNoclipszGodmode); 


But i can not check if 'gszBlockMenu' is correctly set.

Kellan123 07-31-2013 03:32

Re: Menu Problem
 
asdasd

ConnorMcLeod 07-31-2013 03:38

Re: Menu Problem
 
Now that you have provided all information, i can say that correct args order is :

formatex(szMenu, charsmax(szMenu), gszBlockMenu, gszBlockNames[gSelectedBlockType[id]], szSize, col, col, col, col, col, szNoclip, col, szGodmode);

Anyway, you have to put args in the same order they appear in the string, formater is not magic and can't know by itself where this or that should go.
You could have figured this out by yourself.


Also, should_menu keys should be changed according to access :

show_menu(id, gKeysBlockMenu, szMenu, -1, "bmBlockMenu");

->

show_menu(id, gAccess[id] ? gKeysBlockMenu : gAccess[id] & ~( MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_6|M ENU_KEY_7|MENU_KEY_8 ), szMenu, -1, "bmBlockMenu");


All times are GMT -4. The time now is 15:59.

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