Posts: 13
Threads: 7
Joined: Oct 2013
Reputation:
0
What's the difference between SendClientMessageEx and the SendClientMessage? I'm unable to compile my script without having to use SendClientMessage, because the script is using SendClientMessageEx.
PS: SendClientMessageEx is undefined in my script which explains why I can't compile it and the problem is I don't know where or how do I define it.
Posts: 716
Threads: 92
Joined: May 2018
In my gamemode instead of SetPlayerCheckpoint, i use SetPlayerCheckpointEx, because with this stock im also saving some player checkpoint's variables (to connect at timer or textdraw).
Basically there is no difference, it's like you do SCM instead of SendClientMessage.
Normally it's used to "avoid" limitations on current functions to add new needed ones. (In my case i have a distance textdraw based on the created checkpoint, so i made SetPlayerCheckpointEx).
However the use is like the normal SendClientMessage, so:
pawn Код:
SendClientMessageEx(playerid, color, string);
Posts: 126
Threads: 44
Joined: Apr 2015
Reputation:
0
Because you need to define them.
Posts: 716
Threads: 92
Joined: May 2018
Quote:
Originally Posted by Lokii
PHP код:
SendClientMessageEx(playerid, color, message[], more_if_needed...)
{
//code
}
|
No?
pawn Код:
#define SendClientMessageEx SendClientMessage
Posts: 637
Threads: 23
Joined: Feb 2013
Reputation:
0
SendClientMessageEx is when someone modifies the original SendClientMessage but he does not have a good name in his mind so just adds an 'Ex'... If you copy pasted the code then also copy-paste SendClientMessageEx function.
Posts: 455
Threads: 29
Joined: Apr 2014
SendClientMessage is main message sender for player
SendClientMessageEx is exception of SendClientMessage, because it for example modifies text or does something else with the text.