SendClientMessageEx function
#1

Hey guys can you send me the SendClientMessageEx function?I mean post here :P I will +REP
Reply
#2

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.
Reply
#3

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
Reply
#4

Remove the line number 77
Reply
#5

Doesnt work anyway I give you REP
Reply
#6

PHP код:
SendClientMessageToAllEx(exceptioncolormessage[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
== exception) continue;
        
SendClientMessage(icolormessage);
    }

I assume you mean "SendClientMessageToAllEx", I don't know how the other way would work, you need to be more detailed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)