Raised This Month: $ Target: $400
 0% 

[Request]Menu Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Alexblood2013
Senior Member
Join Date: Aug 2014
Old 12-29-2014 , 18:00   [Request]Menu Help
Reply With Quote #1

Hello, i just thinking if is possible to add a cooldown in a menu (float)
like this:

if(user_has_weapon(id, CSW_HEGRENADE))
menu_additem(Menu, "\dHe grenade\w - \rAlready Has HE", "6", 0)
else {
if(Hegrnd_Countdown[id] = 0)
menu_additem(Menu, "\wHe grenade - \rREADY", "6", 0)
else
menu_additem(Menu, "\dHe grenade\w - \r [%d]", "6", 0, Hegrnd_Countdown[id])
}

If can be done , how it should look>?

Right now i get a warning : possible unintended assignmenet
Alexblood2013 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 15:21.


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