Raised This Month: $12 Target: $400
 3% 

Timer with Interval of a varaible


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n00bfilter
Junior Member
Join Date: Jul 2010
Old 07-29-2010 , 11:41   Timer with Interval of a varaible
Reply With Quote #1

Sorry, for bad english.
I want to set a timer with an interval specified in this variable:
player[client][icestab]

But i tried it like this and 2 errors came up:
IcestabTimer[client] = CreateTimer(player[client][icestab],Unfreeze,client)

Is there any possible way to execute the callback with a relay?

EDIT: Okay i found a better way to freeze somebody, but i can't make the freezetime dynamic. :/

Please help me. Thanks.

Last edited by n00bfilter; 07-29-2010 at 11:51.
n00bfilter is offline
n00bfilter
Junior Member
Join Date: Jul 2010
Old 07-30-2010 , 07:45   Re: Timer with Interval of a varaible
Reply With Quote #2

Is there no way to do this? :/
I just want to execute a command with a relay specified with a variable.
n00bfilter is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 07-30-2010 , 09:13   Re: Timer with Interval of a varaible
Reply With Quote #3

u can, what are the errors?
DarkEnergy is offline
n00bfilter
Junior Member
Join Date: Jul 2010
Old 07-30-2010 , 09:20   Re: Timer with Interval of a varaible
Reply With Quote #4

PHP Code:
levelsys.sp(75) : warning 213tag mismatch
levelsys
.sp(75) : error 100: function prototypes do not match 
Thats it.
n00bfilter is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 07-30-2010 , 10:17   Re: Timer with Interval of a varaible
Reply With Quote #5

player[][] needs to be Float:player[][]

Unfreeze needs to have a function header (prototype of)
public Action:Unfreeze(Handle:h,any:client){
}
DarkEnergy is offline
n00bfilter
Junior Member
Join Date: Jul 2010
Old 07-30-2010 , 17:15   Re: Timer with Interval of a varaible
Reply With Quote #6

I got it working now Thank you.
n00bfilter 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 15:51.


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