Defining SendClientMessage help.
#1

I'm having a brain fart at the moment. Could someone please help me with this simple mistake? I'm trying to define a SendClientMessage, to avoid typing it over and over.

pawn Код:
#define ERROR_MESSAGE SendClientMesssage(playerid,COLOR_GREY, "ERROR: You're not authorized to use this command.");
Код:
C:\Users\Luke\Desktop\Scripting\Mini-Missions V1\gamemodes\bare.pwn(59) : error 017: undefined symbol "SendClientMesssage"
C:\Users\Luke\Desktop\Scripting\Mini-Missions V1\gamemodes\bare.pwn(59) : error 036: empty statement
Appreciated.
Reply
#2

I'm fairly certain you can't do it like that. You'd have to do this:

pawn Код:
#define ERROR_MESSAGE "ERROR: You're not authorized to use this command."
Reply
#3

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
I'm fairly certain you can't do it like that. You'd have to do this:

pawn Код:
#define ERROR_MESSAGE "ERROR: You're not authorized to use this command."
Ah, no wonder. Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)