AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Need help about Global Variables (news) (https://forums.alliedmods.net/showthread.php?t=170806)

MiloSx7 10-29-2011 05:19

Need help about Global Variables (news)
 
http://pastebin.com/wNDZFSPG

So what am i doing wrong, timer always shows 0, and it doesn't falls down...
:S

Pls help, it would be great for Deathrun servers. :)

BrundiX 10-29-2011 06:51

Re: Need help about Global Variables (news)
 
"NovaRunda" is a global event, so you cant have a 'id' parametar in public NovaRunda(id)

->

public NovaRunda()

something on our language:
vec napravljeno milose :D

http://plugins.kgb-hosting.com/index...0b8320a0736b97

Backstabnoob 10-29-2011 08:07

Re: Need help about Global Variables (news)
 
As it's been said remove the argument in the event hook. Also, remove this on line 35 (that is actually one of the reasons it doesn't work since you don't increase the id by TASK_TIMER):
Code:
set_task(1.0, "CountDown", id)

and change line 21 to:
Code:
set_task(1.0, "CountDown", id + TASK_TIMER, _, _, _, "a", 120)

MiloSx7 10-29-2011 08:11

Re: Need help about Global Variables (news)
 
Fucking PAWN, everything i want to make is already made... FUCK!


All times are GMT -4. The time now is 14:21.

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