SA-MP Forums Archive
Error when I compile - 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: Error when I compile (/showthread.php?tid=82574)



Error when I compile - monster010 - 19.06.2009

I have a problem when I compile, errors:

Код:
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY.pwn(23101) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY.pwn(23101) : error 017: undefined symbol "Forum"
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY.pwn(23101) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Claudiu\Desktop\Server Sa-Mp Mortalii RPG by PuNaNi\[2.0 X]\gamemodes\Mortalii_RolePlaY.pwn(23101) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.

How can I solve this problem?




Thanks in advance


Re: Error when I compile - Correlli - 19.06.2009

You don't have "Forum" defined.


Re: Error when I compile - Mr_C30 - 19.06.2009

declare your variable properly


Re: Error when I compile - monster010 - 19.06.2009

And how I define? I'm pretty noob in script)


Re: Error when I compile - Delphinus - 19.06.2009

We really need to see the script that lies around line 23101 to be able to help.


Re: Error when I compile - monster010 - 19.06.2009

Код:
//----------------------------------[websitename]-------------------------------------------------------------------------------
	if(strcmp(cmd, "/server", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			SendClientMessage(playerid, COLOR_RED, "|__________________||____________________________|");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, " Forum : http://mortalii.tk/);
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "IP :78.97.32.244:7777");
			SendClientMessage(playerid, COLOR_RED, "|__________________||_____________________________|");
    }
		return 1;
	}



Re: Error when I compile - Delphinus - 19.06.2009

Quote:
Originally Posted by monster010
Код:
//----------------------------------[websitename]-------------------------------------------------------------------------------
	if(strcmp(cmd, "/server", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			SendClientMessage(playerid, COLOR_RED, "|__________________||____________________________|");
			SendClientMessage(playerid, COLOR_LIGHTBLUE, " Forum : http://mortalii.tk/);
			SendClientMessage(playerid, COLOR_LIGHTBLUE, "IP :78.97.32.244:7777");
			SendClientMessage(playerid, COLOR_RED, "|__________________||_____________________________|");
    }
		return 1;
	}
You just missed a " sign:

SendClientMessage(playerid, COLOR_LIGHTBLUE, " Forum : http://mortalii.tk/");


Re: Error when I compile - monster010 - 19.06.2009

Tanks