25.04.2013, 16:54
Hey guys can you send me the SendClientMessageEx function?I mean post here :P I will +REP
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)
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.
SendClientMessageToAllEx(exception, color, message[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(i == exception) continue;
SendClientMessage(i, color, message);
}
}