• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Which one is better?
#1
PHP Code:
#define SendErrorMessage(%0, %1) SendClientMessage(%0, COLOR_RED, "[*]{FFFFFF} "%1) 



PHP Code:
SendErrorMessage(playerid, const msg[]) {

? ? new

? ? ? ? 
string[145];



? ? 
format(stringsizeof(string), "[*]"C_WHITE" %s"msg);



? ? return 
SendClientMessage(playeridCOLOR_REDstring);





I just want to know how different
  Reply
#2
(2022-01-26, 09:29 PM)Zow Wrote:
PHP Code:
#define SendErrorMessage(%0, %1) SendClientMessage(%0, COLOR_RED, "
[*]{FFFFFF"%1) 

PHP Code:
SendErrorMessage(playerid, const msg[]) {
? ? new
? ? ? ? 
string[145];

? ? 
format(stringsizeof(string), "
[*]"
C_WHITE" %s"msg);

? ? return 
SendClientMessage(playeridCOLOR_REDstring);


I just want to know how different

PHP Code:
#define SendErrorMessage(%0, %1) SendClientMessage(%0, COLOR_RED, "{FFFFFF} "%1) 

I think just because you're using less resources as you don't need to create a variable etc. Marginally better
i like to shitpost. positive vibes :)
  Reply
#3
Of the two, the define is better.
  Reply


Forum Jump: