Raised This Month: $ Target: $400
 0% 

Load Model Problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 07-24-2020 , 16:21   Re: Load Model Problem
Reply With Quote #2

In the mh_gMenu handler, you need to set the bool dj_table true or false when it's pressed, not to check its value, because you don't sets its vaules somewhere else.

Code:
new szText[555 char]     formatex(szText , charsmax(szText) , "Dj Table [ %s \w]", dj_table? "\yON" : "\rOff")
This is completely WRONG.
You need to format all menu items, even the menu itself:
Code:
new szText[555 char]; formatex(szText, charsmax(szText), "\rMusic Menu^n \yMenu By \rReD M "); new menu = menu_create(szText, "mh_gMenu"); formatex(szText, charsmax(szText), "\wMusic Menu\r"); menu_additem(menu, szText, "0"); formatex(szText , charsmax(szText) , "Dj Table [ %s \w]", dj_table? "\yON" : "\rOff"); menu_additem(menu, szText , "1") formatex(szText , charsmax(szText), "\rStop Music \r^n"); menu_additem(menu, szText, "2");
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 07-24-2020 at 16:22.
Shadows Adi is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:56.


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