07.08.2011, 18:17
Thanks !
I have do it for SendClientMessageToAll and print :
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?
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
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?