Raised This Month: $ Target: $400
 0% 

equali with cvar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 07-02-2006 , 13:40   Re: equali with cvar
Reply With Quote #1

you cannot format strings like that in an equali, you need to setup a var and format the string into that then use it in the equal.... also %s is string, %f is float. And your cvars is registered as "amx_teamA". This might work.

Code:
new temp[32] get_cvar_string(temp,31,"amx_team") format(temp,31, "%s ready", temp) if ( equali( CheckSay, temp ) ) {         set_cvar_num( "sv_restartround", 1 )     }
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
Reply



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 08:02.


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