• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] Which one is better?
#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


Messages In This Thread
Which one is better? - by Zow - 2022-01-26, 09:29 PM
RE: Which one is better? - by Behemoth - 2022-02-18, 08:01 PM
RE: Which one is better? - by Y_Less - 2022-03-25, 02:32 PM

Forum Jump: