Raised This Month: $ Target: $400
 0% 

Help with a Cvar plz!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 12-22-2009 , 17:13   Re: Help with a Cvar plz!
Reply With Quote #5

Quote:
Originally Posted by ProIcons View Post
new vars[2]
get_cvar_string("amx_boxing", varz, 1)

in cvar_string you have varz it must be vars

get_cvar_string("amx_boxing", vars, 1);

and a ; in the end
Quote:
Originally Posted by NcB_Sav View Post
after you change the value you have to restart the round...

You have it on round start the only time you actully have the plugin check if its on or off.
so, what i have to do? :S

PHP Code:

register_cvar
("amx_boxing","1")

public 
enable(id)
{
    new 
vars[2]
    
get_cvar_string("amx_boxing"vars1);
    if (
equal(vars,"1") && !g_bEnabled)

????????
Zapdos1 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 04:07.


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