What is faster?
#1

So I just wanna know what is faster. (Only for information)

If i make something like this:
pawn Код:
#define NotOnline "This user is not online."
and then show it in client message like:
pawn Код:
SendClientMessage(playerid, RED, NotOnline);
Or just showing it in client message right away, like:
pawn Код:
SendClientMessage(playerid, RED, "This user is not online.");
Reply
#2

Both the same. The compiler just swaps the define for the text. But if your going to use the same message over and over again use the define because you only need to change one line to change the string. Ofc you knew that, but just saying.
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Both the same. The compiler just swaps the define for the text.
Ohhh, thanks.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)