Raised This Month: $ Target: $400
 0% 

CVAR not working with time HELP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-09-2004 , 23:14   CVAR not working with time HELP
Reply With Quote #1

ok, attached is the file compiled under v. 0.16, the problem is when you buy noclip, it gives you a number exceeding greatly of what u put in

The cvar is set at 7 and it gives it something like 6873532439 which is not 7

Its an unfinished plugin so dont expect the count-down to work, if someone knows what the problem is or how to fix it could u tell me or do it? Thanks in advanced.
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-10-2004 , 08:12  
Reply With Quote #2

1. set_task(1.0,"print_timeleft(id)",3425,"b") << U cant pass id that way

You also have this loop
set_task(1.0,"timer",1093,array[0],1,"b")
calling this one EVERY SECOND
set_task(1.0,"print_timeleft(id)",3425,"b")
and that loop calls another function every second and in the end its such a big lag ur making. One of those loops should only run ONCE.


Also try making the cvar an ACTUAL float
Freecode is offline
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-10-2004 , 16:45  
Reply With Quote #3

Quote:
Originally Posted by Freecode
Also try making the cvar an ACTUAL float
I did try that and no hope (im that THAT stupid )

Also, i didnt make that loop, sum1 else tried to 4 me... But i said dont worry about that part yet
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-10-2004 , 16:46  
Reply With Quote #4

fix all tasks and then try
Freecode is offline
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 17:11.


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