Yet anothe werid error
#1

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;
}
Reply
#2

#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
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)