AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Exec ....cgf every 5 minutes. (https://forums.alliedmods.net/showthread.php?t=26969)

Evaldas 04-12-2006 12:58

Exec ....cgf every 5 minutes.
 
Would it be hard to make plugin, who would exec mini_cfg.cfg every 5-10minutes?

wouter 04-12-2006 13:02

http://forums.alliedmods.net/showthread.php?p=11751

FatalisDK 04-12-2006 13:04

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Minicfg exec" #define VERSION "0.1" #define AUTHOR "FatalisDK" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         set_task(300.0,"minicfg",312351,"",0,"b" } public minicfg() {     server_cmd("exec mini_cfg.cfg") }

Wolle 04-12-2006 13:42

Quote:

Originally Posted by Pawn Documentation
A string must be stored in an array.

Therfore I suggest doing it like so
Code:
new PLUGIN[6]="Money"; new AUTHOR[6]="Wolle"; new VERSION[5]="1.00";

wouter 04-12-2006 13:44

without the [] it will work to

MaximusBrood 04-12-2006 18:16

A string must be stored in an array with small, yes. But defines are constant, you can do it FataliskDK's way.

Better is to use normal vars outside functions, like Wolle.
But you don't need to give the array size, the compiler will notice the size itself.

Code:
new PLUGIN[] = "pppp"; new AUTHOR[] = "aaaaaaa"; new VERSION[] = "4.13";

Evaldas 04-20-2006 16:14

Thank you for your help :!:


All times are GMT -4. The time now is 05:10.

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