register cvar string
How do i register a cvar into a variable that is a string.
I tried this: new cvar[32] new msg[32] cvar = register_cvar("admin_msg", "ADMIN MSG") msg = get_pcvar_string(cvar) |
Re: register cvar string
|
Re: register cvar string
Just so you don't get confused, register_cvar returns an integer value (not an array). Change new cvar[32] to just new cvar (for the above code you posted)
|
Re: register cvar string
new cvar
new msg2[32] cvar = register_cvar("admin_msg", "ADMIN MSG") client_print(id, print_chat, "%s",get_pcvar_string(cvar,msg2, 31)) Doesn't work |
Re: register cvar string
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 22:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.