SendClientMessageEx function - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessageEx function (
/showthread.php?tid=433055)
SendClientMessageEx function -
Necip - 25.04.2013
Hey guys can you send me the SendClientMessageEx function?I mean post here :P I will +REP
Re: SendClientMessageEx function -
[HK]Ryder[AN] - 25.04.2013
pawn Код:
new FALSE = false, _ex_string[156];
#define SendClientMessageEx(%0,%1,%2,%3) do{format(_ex_string, 156,%2,%3); SendClientMessage(%0,%1,_str);}while(FALSE)
#define SendClientMessageToAllEx(%1,%2,%3) do{format(_ex_string, 156,%2,%3); SendClientMessageToAll(%1,_str);}while(FALSE)
Put this out of any callback on top of your script.
Re: SendClientMessageEx function -
Necip - 25.04.2013
pawn Код:
C:\Users\ARENA\Desktop\GTA - San Andreas\SAMP\gamemodes\CoconotRPnew.pwn(77) : error 021: symbol already defined: "FALSE"
C:\Users\ARENA\Desktop\GTA - San Andreas\SAMP\gamemodes\CoconotRPnew.pwn(1247) : warning 203: symbol is never used: "_ex_string"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
I didn't use FALSE function anywhere
Re: SendClientMessageEx function -
yaron0600 - 25.04.2013
Remove the line number 77
Re: SendClientMessageEx function -
Necip - 25.04.2013
Doesnt work anyway I give you REP
Re: SendClientMessageEx function -
ReV. - 25.04.2013
PHP код:
SendClientMessageToAllEx(exception, color, message[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i == exception) continue;
SendClientMessage(i, color, message);
}
}
I assume you mean "SendClientMessageToAllEx", I don't know how the other way would work, you need to be more detailed.