Loading filterscript
#1

Код:
#include <a_samp>
new string[256];
new Msg;
public OnFilterScriptInit()
{
	print("bla");
    Msg = 0;
    SetTimer("GlobalAnnouncement",5000,true);
    return 1;
}
public OnFilterScriptExit()
{
	return 1;
}
forward GlobalAnnouncement();
public GlobalAnnouncement()
{
    switch (Msg)
    {
		case 0: {
			format(string, sizeof(string), "hostname asd4");
			SendRconCommand(string);
			Msg++;
		}
		case 1: {
			format(string, sizeof(string), "hostname asd2");
			SendRconCommand(string);
			Msg++;
		}
		case 2: {
			format(string, sizeof(string), "hostname asd3");
			SendRconCommand(string);
			Msg++;
		}
		case 3: {
			format(string, sizeof(string), "hostname asd1");
			SendRconCommand(string);
			Msg = 0;
		}
    }
    return 1;
}
Im compiling to .amx, then i add server.cfg to FS name.

Then serverlog says:
Код:
[01:54:19] Filter Scripts
[01:54:19] ---------------
[01:54:19]   Loading filter script 'anno.amx'...
[01:54:19]   Unable to load filter script 'anno.amx'.
[01:54:19]   Loaded 0 filter scripts.
Tryed all 100 tricks, still doenst work.. Why?

// nvm, i uploaded this FS to gamemodes folder. How i can be idiot.. Sorry.
Reply


Messages In This Thread
Loading filterscript - by Typhome - 18.12.2010, 22:55
Re: Loading filterscript - by TheArcher - 18.12.2010, 22:57
Re: Loading filterscript - by Mean - 19.12.2010, 08:13

Forum Jump:


Users browsing this thread: 1 Guest(s)