SA-MP Forums Archive
This fs returns 2 errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: This fs returns 2 errors (/showthread.php?tid=121804)



This fs returns 2 errors - braduz - 18.01.2010

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


Re: This fs returns 2 errors - HydraX - 18.01.2010

Show me Line 11 and 12..


Re: This fs returns 2 errors - AiVAMAN - 18.01.2010

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.


Re: This fs returns 2 errors - HydraX - 18.01.2010

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 "


Re: This fs returns 2 errors - AiVAMAN - 18.01.2010

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.


Re: This fs returns 2 errors - braduz - 18.01.2010

Thanks guys
U get cookie =3


Re: This fs returns 2 errors - AiVAMAN - 19.01.2010

Your'e welcome.