SendClientMessage
#3

Thanks !

I have do it for SendClientMessageToAll and print :

Код:
#if !defined SendPlayerText
    stock
        __string[128]
    ;
    #define SendPlayerText(%0,%1,%2,%3) \
        (format(__string, sizeof(__string), (%2), %3), SendClientMessage((%0), (%1), __string))
#endif

#if !defined SendAllPlayerText
    stock
        __string[128]
    ;
    #define SendAllPlayerText(%0,%1,%2) \
        (format(__string, sizeof(__string), (%1), %2), SendClientMessageToAll((%1), __string))
#endif

#if !defined PrintText
    stock
        __string[128]
    ;
    #define PrintText(%0,%1) \
        (format(__string, sizeof(__string), (%0), %1), print(__string))
#endif
I placed the code on top of a page .inc I'll include all pages.

So I call the function: SendPlayerText(iPlayerID, VIOLET, "Admin %s : %s", szPlayerName, text[1]);.

And I get errors like this: error 017: undefined symbol "SendPlayerText".

What is the problem?

PS: Is the C you put?
Reply


Messages In This Thread
SendClientMessage - by Urefeu - 07.08.2011, 16:58
Re: SendClientMessage - by RyDeR` - 07.08.2011, 17:34
Re : SendClientMessage - by Urefeu - 07.08.2011, 18:17
Re : SendClientMessage - by Urefeu - 07.08.2011, 19:25
Re : SendClientMessage - by Urefeu - 08.08.2011, 07:56

Forum Jump:


Users browsing this thread: 2 Guest(s)