AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Little Problem but annoying (https://forums.alliedmods.net/showthread.php?t=2874)

sanaell 06-19-2004 07:50

Little Problem but annoying
 
Code:
public show_wc3v() {     if (get_cvar_num("sv_warcraft3")==1){         set_hudmessage(255,255,255,0.75,0.05,0, 1.0, 1.0, 0.1, 0.2, 13)         show_hudmessage(0,"%s : version %s",WC3NAME,WC3VERSION)     }     return PLUGIN_CONTINUE }
that is the function who is launch by that in plugin init of WC3FT
Code:
set_task(1.0, "show_wc3ver",0,"",0,"b")

... DON T WORK
oh WC3NAME & WC3VERSION are #define (and work)

- Other Problem
Code:
public wc3_check_time() {    new heure_str[8], cmd[255], minute_str[8]    get_time("%H",heure_str,8)    get_time("%M",minute_str,8)    new heure = strtonum(heure_str)    if ((heure >= 23) || (heure < 8))       format(cmd,255,"sv_warcraft3 1",heure)    else       format(cmd,255,"sv_warcraft3 0",heure)    server_cmd(cmd)    return PLUGIN_HANDLED }

does that can work ???

because DONT WORK ( i believe it s the set_task.... is broken)


All times are GMT -4. The time now is 14:40.

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