Raised This Month: $ Target: $400
 0% 

Dude with cvar + set_task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dasha
Senior Member
Join Date: Apr 2012
Location: \%STEAM -> $_SESSION
Old 07-08-2012 , 16:27   Dude with cvar + set_task
Reply With Quote #1

hi x_x
How to use text in cvar and print it?

~example;
Quote:
new text

text = register_cvar("cvar_name", "some text here")

ColorChat(id, GREEN, "your text in cvar: %s", get_pcvar_num(text) )
It won't print the text in cvar, i tried with %s, %d, %f and nothing :\
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)

Last edited by dasha; 07-08-2012 at 16:34.
dasha 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 15:09.


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