Raised This Month: $ Target: $400
 0% 

Cant seem to get register_logevent working


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 09-02-2004 , 04:10   Cant seem to get register_logevent working
Reply With Quote #1

Code:
public plugin_init() {     register_plugin("CVAR  change","1.0.0","EKS")       register_logevent("cvar_changed",0,"mp_timelimit") } public cvar_changed() {     new Arg[14]     read_logargv(0,Arg,13)     server_cmd("echo cvar_changed function called")     if(equal(Arg,"mp_timelimit"))     {         server_cmd("echo mp_timelimit changed")         remove_task(1+32)         new Float:TaskTime = float(get_timeleft()) - 10.0         set_task(TaskTime,"task_ShowStats",1+32);     } }

From the include it looks like it should work:
Quote:
/* Registers log event on which the given function will be called
* Examples for conditions:
* "0=World triggered" "1=Game_Commencing"
* "1=say"
* "3=Terrorists_Win"
* "1=entered the game"
* "0=Server cvar"
*/
native register_logevent(const function[], argsnum, ... );
Well, i cant seem to get it working. If someone can point out the error to be id be greatfull
EKS 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 17:13.


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