SA-MP Forums Archive
Yet anothe werid error - 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: Yet anothe werid error (/showthread.php?tid=126224)



Yet anothe werid error - too803 - 07.02.2010

I get this error

C:\Documents and Settings\Admin\Desktop\server\gamemodes\attempt.pw n(11) : error 001: expected token: "#endif", but found "-end of file-"

when trying to compile this script

// /me filter script
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

dcmd_me(playerid, params[])
{
new msg[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(msg,sizeof(msg),"** %s(%i): %s",pName,playerid,params);
SendClientMessageToAll(0xFFD720FF,msg);
return 1;
}


Re: Yet anothe werid error - deather - 07.02.2010

#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

dcmd_me(playerid, params[])
{
new msg[128], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(msg,sizeof(msg),"** %s(%i): %s",pName,playerid,params);
SendClientMessageToAll(0xFFD720FF,msg);
return 1;
}

remove the striked lines


Re: Yet anothe werid error - [NYRP]Mike. - 07.02.2010

Both use brackets, thats what they're there for.