Raised This Month: $ Target: $400
 0% 

Cvar doesn't work?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 11-01-2011 , 08:48   Cvar doesn't work?
Reply With Quote #1

I made a code, with cvar, and its not working.
PHP Code:
new vmr
/*...*/
public plugin_init()
{
    
vmr register_cvar("vip_menu_round","3"// From which round VIP can take VIP menu
}
/*...*/
public cmdvipmenu(id)
{
    
round++;
    if( 
round get_pcvar_num(vmr) )
    {
        
Showrod(id)
    }
}
/*...*/
public Event_RoundRestart(id)
{
    
round=0;

__________________
Please enter this website everyday: http://forums.alliedmods.net/showthread.php?t=169067

Last edited by Evaldas.Grigas; 11-01-2011 at 08:55.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
 



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 14:26.


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