Raised This Month: $ Target: $400
 0% 

Exec ....cgf every 5 minutes.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 04-12-2006 , 12:58   Exec ....cgf every 5 minutes.
Reply With Quote #1

Would it be hard to make plugin, who would exec mini_cfg.cfg every 5-10minutes?
__________________
Evaldas is offline
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-12-2006 , 13:02  
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=11751
wouter is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 04-12-2006 , 13:04  
Reply With Quote #3

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") }
__________________
FatalisDK is offline
Wolle
Member
Join Date: Jun 2005
Location: Berlin / Germany
Old 04-12-2006 , 13:42  
Reply With Quote #4

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";
Wolle is offline
Send a message via AIM to Wolle
wouter
Senior Member
Join Date: Feb 2005
Location: Belgium
Old 04-12-2006 , 13:44  
Reply With Quote #5

without the [] it will work to
wouter is offline
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 04-12-2006 , 18:16  
Reply With Quote #6

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";
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline
Evaldas
Member
Join Date: Jul 2005
Location: Lithuania
Old 04-20-2006 , 16:14  
Reply With Quote #7

Thank you for your help
__________________
Evaldas 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 05:10.


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