Dude with cvar + set_task
hi x_x
How to use text in cvar and print it? ~example; Quote:
Can someone also tell me the difference betwen the %d, %f and all those symbs? thanks ---edit How I can set_task with cvar? like: new task_time task_time = register_cvar("cvar_name", "10") set_task(here the cvar, "etc", id) |
Re: Dude with cvar + set_task
PHP Code:
|
Re: Dude with cvar + set_task
And how should I register the cvar? coz this way isn't working :|
szText = register_cvar("szText", "some text") Error: Array must be indexed (variable "szText") on line 86 or szText[50] = register_cvar("bla", "some text") Error: Array index out of bounds (variable "szText") on line 86 |
Re: Dude with cvar + set_task
PHP Code:
|
Re: Dude with cvar + set_task
Thanks, working well :3
|
Re: Dude with cvar + set_task
just as a note, to avoid this kind of confusion later....when coders prefix variable names with "sz" it means its a string. Check out the tut section for threads about hungarian notation. You'll see it A LOT around here.
|
| All times are GMT -4. The time now is 15:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.