SendClientMessageEx & SendClientMessage?? -
Ramzi101 - 22.08.2018
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.
Re: SendClientMessageEx & SendClientMessage?? -
KinderClans - 22.08.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);
Re: SendClientMessageEx & SendClientMessage?? -
Ramzi101 - 22.08.2018
Quote:
Originally Posted by KinderClans
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);
|
But with SendClientMessageEx, I can't compile it since it's undefined symbol.
Re: SendClientMessageEx & SendClientMessage?? -
severance - 22.08.2018
Because you need to define them.
Re: SendClientMessageEx & SendClientMessage?? -
Ramzi101 - 22.08.2018
How? I mean where?
Re: SendClientMessageEx & SendClientMessage?? -
Lokii - 22.08.2018
PHP код:
SendClientMessageEx(playerid, color, message[], more_if_needed...)
{
//code
}
Re: SendClientMessageEx & SendClientMessage?? -
KinderClans - 22.08.2018
Quote:
Originally Posted by Lokii
PHP код:
SendClientMessageEx(playerid, color, message[], more_if_needed...)
{
//code
}
|
No?
pawn Код:
#define SendClientMessageEx SendClientMessage
Re: SendClientMessageEx & SendClientMessage?? -
Lokii - 22.08.2018
Quote:
Originally Posted by KinderClans
No?
pawn Код:
#define SendClientMessageEx SendClientMessage
|
i made a custom function while you just defined a longer name for sendclientmessage
tho he can also make custom function using marco
PHP код:
#define SendClientMessageEx(%0,%1,%2,%3..more_if_needed) SendClientMessgae(%0,%1,%2); //more code here
Re: SendClientMessageEx & SendClientMessage?? -
coool - 22.08.2018
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.
Re: SendClientMessageEx & SendClientMessage?? -
CodeStyle175 - 22.08.2018
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.