#define and SendClientMessage
#1

Hello. There is one problem, such as a constant

#define ERROR_TEXT "You need to check your mail"

and if you use so it will not be replaced

PHP Code:
SendClientMessage(playerid,-1,"Problem:ERROR_TEXT"); 
result
Quote:

Problem: ERROR_TEXT

How to use a constant in order to function SendClientMessage correctly displays the value?
Reply
#2

PHP Code:
SendClientMessage(playerid,-1,"Problem: "ERROR_TEXT); 
Reply
#3

PHP Code:
SendClientMessage(playerid,-1,"Problem: "ERROR_TEXT); 
Reply
#4

Thank you all, work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)