AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   get_timeleft( ) problem (https://forums.alliedmods.net/showthread.php?t=162917)

Honors 07-24-2011 12:55

get_timeleft( ) problem
 
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")

ConnorMcLeod 07-24-2011 12:59

Re: get_timeleft( ) problem
 
If nothing is printed, you may have forgotten to declare your plugin in plugins.ini
Check also errorlogs.

Honors 07-24-2011 13:04

Re: get_timeleft( ) problem
 
The problem was wrote in my errorlog. There was a "register_clcmd" which wasn't used.

Thank you.


All times are GMT -4. The time now is 01:06.

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