This fs returns 2 errors
#1

#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.
Reply
#2

Show me Line 11 and 12..
Reply
#3

pawn Код:
#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 red 0xAA3333AA
new timermsg;

public OnFilterScriptInit()
{
   print("\n--------------------------------------");
   print(" Random Messages Script");
   print("--------------------------------------\n");
   timermsg = SetTimer("SendMSG", 200000, true);
   return 1;
}

public OnFilterScriptExit()
{
   KillTimer(timermsg);
   return 1;
}

forward SendMSG();
public SendMSG()
{
   new randMSG = random(sizeof(RandomMSG));
   SendClientMessageToAll(red, RandomMSG[randMSG]);
   return 1;
}
Try this.
Reply
#4

He did ""

instead of "


This is wrong..
"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk ""

So it should be

"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk "
Reply
#5

Quote:
Originally Posted by HydraX
He did ""

instead of "


This is wrong..
"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk ""

So it should be

"Wolfbot: So you will not loose the server, heres Braduz's email: braduz911@live.co.uk "
Yes.
Reply
#6

Thanks guys
U get cookie =3
Reply
#7

Your'e welcome.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)