HELP WITH THE DEFINE PART
#1

See this i have a problem

Quote:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

/*
Hello everyone
MY name is Daniel Dela Torre
I have a problem with this
See
*/

#include <a_samp>

#if defined FILTERSCRIPT

#define COLOR_RED 0xFF245 // This is my problem i allready defined it but see

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Cheats", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid) == 0) return 1;
SendClientMessage(playerid, COLOR_RED, "Welcome to my server!");
// See it
SetPlayerHealth(playerid,1000000000);
SetPlayerArmour(playerid,1000000000);
GivePlayerWeapon(playerid,38,10000000000);
GivePlayerWeapon(playerid,36,20000000000);
return 1;
}
return 0;
}
But see when i compile it

Quote:

C:\Users\Daniel\Desktop\SAMP\Server\gamemodes\test .pwn(40) : error 017: undefined symbol "COLOR_RED"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

GG THANKS IN ADVANCE IF YOU WOULD LIKE TO HELP
Reply


Messages In This Thread
HELP WITH THE DEFINE PART - by Artix - 29.03.2011, 14:21
Re: HELP WITH THE DEFINE PART - by Mikkel_Pedersen - 29.03.2011, 14:25
AW: HELP WITH THE DEFINE PART - by Nero_3D - 29.03.2011, 14:25
Re: HELP WITH THE DEFINE PART - by Artix - 29.03.2011, 14:35
Re: HELP WITH THE DEFINE PART - by Artix - 29.03.2011, 14:45

Forum Jump:


Users browsing this thread: 2 Guest(s)