Raised This Month: $ Target: $400
 0% 

get_timeleft( ) problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Honors
Member
Join Date: Jul 2011
Old 07-24-2011 , 12:55   get_timeleft( ) problem
Reply With Quote #1

Hi people,

I have a problem with get_timeleft( ) native.

My code :

Code:
#include < amxmodx > public plugin_init( ) {      register_clcmd( "say /test" , "test" ) } public test( id ) {      client_print( id , print_chat , "timeleft --> %d" , get_timeleft() ) }

When I type /test in the chat, nothing is wrote...

What is the problem in my code ?

cf funcwiki :

Quote:
Example:

new MyInt = get_timeleft()
So, this native return an int variable. (that's why I have using "%d")
Honors is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-24-2011 , 12:59   Re: get_timeleft( ) problem
Reply With Quote #2

If nothing is printed, you may have forgotten to declare your plugin in plugins.ini
Check also errorlogs.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Honors
Member
Join Date: Jul 2011
Old 07-24-2011 , 13:04   Re: get_timeleft( ) problem
Reply With Quote #3

The problem was wrote in my errorlog. There was a "register_clcmd" which wasn't used.

Thank you.
Honors is offline
Reply


Thread Tools
Display Modes

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 01:06.


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