Raised This Month: $ Target: $400
 0% 

Why tag mismatch?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AbeX
Junior Member
Join Date: Mar 2007
Old 03-14-2007 , 11:59   Why tag mismatch?
Reply With Quote #1

PHP Code:

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_cvar("demo_time""20.0"
}

public 
client_putinserver(id) {
    
//line 17 is here, when use get_cvar_num("demo_time") in task time:
    
set_task(get_cvar_num("demo_time"),"record",id);

Warning: Tag mismatch on line 17
AbeX is offline
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 03-14-2007 , 12:01   Re: Why tag mismatch?
Reply With Quote #2

Code:
set_task(get_cvar_num(... to set_task(get_cvar_float(...

The first parameter of set_task requires a float not a int.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
AbeX
Junior Member
Join Date: Mar 2007
Old 03-14-2007 , 12:20   Re: Why tag mismatch?
Reply With Quote #3

Thanks
AbeX 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 20:56.


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