AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CVAR not working with time HELP (https://forums.alliedmods.net/showthread.php?t=5698)

johnjg75 09-09-2004 23:14

CVAR not working with time HELP
 
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. :roll:

Freecode 09-10-2004 08:12

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

johnjg75 09-10-2004 16:45

Quote:

Originally Posted by Freecode
Also try making the cvar an ACTUAL float

I did try that and no hope (im that THAT stupid :wink: )

Also, i didnt make that loop, sum1 else tried to 4 me... But i said dont worry about that part yet

Freecode 09-10-2004 16:46

fix all tasks and then try


All times are GMT -4. The time now is 17:11.

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