18.01.2010, 16:49
#include <a_samp>
new RandomMSG[][] =
{
"Wolfbot: Are you stuck? get help (/help) ^^",
"Wolfbot: add",
"Wolfbot: Have any ideas? tell me!",
"Wolfbot: Wanna know who made what? find out /credits",
"Wolfbot: See a cheater or hacker? tell the admins!",
"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk ""
};
#define FILTERSCRIPT
#define red 0xAA3333AA
new timermsg;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Random Messages Script");
print("--------------------------------------\n");
timermsg = SetTimer("SendMSG", 200000, true);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(timermsg);
return 1;
}
#endif
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(red, RandomMSG[randMSG]);
return 1;
}
THE ERRORS:
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(11) : error 037: invalid string (possibly non-terminated string)
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(12) : error 010: invalid function or declaration
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(31) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
new RandomMSG[][] =
{
"Wolfbot: Are you stuck? get help (/help) ^^",
"Wolfbot: add",
"Wolfbot: Have any ideas? tell me!",
"Wolfbot: Wanna know who made what? find out /credits",
"Wolfbot: See a cheater or hacker? tell the admins!",
"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk ""
};
#define FILTERSCRIPT
#define red 0xAA3333AA
new timermsg;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Random Messages Script");
print("--------------------------------------\n");
timermsg = SetTimer("SendMSG", 200000, true);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(timermsg);
return 1;
}
#endif
forward SendMSG();
public SendMSG()
{
new randMSG = random(sizeof(RandomMSG));
SendClientMessageToAll(red, RandomMSG[randMSG]);
return 1;
}
THE ERRORS:
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(11) : error 037: invalid string (possibly non-terminated string)
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(12) : error 010: invalid function or declaration
C:\Users\Braduz\Desktop\Server\filterscripts\wolfb ot.pwn(31) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.