View Single Post
roohsavar
Junior Member
Join Date: Jun 2013
Location: IRAN
Old 09-07-2019 , 14:32   Re: Return value for PrintToChatAll ?
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
...just use the version of PrintToChatAll that exists in the SourceMod API.

Edit: If you really want to know what the code for PrintToChatAll looks like:

PHP Code:
stock void PrintToChatAll(const char[] formatany ...)
{
    
char buffer[254];
    
    for (
int i 1<= MaxClientsi++)
    {
        if (
IsClientInGame(i))
        {
            
SetGlobalTransTarget(i);
            
VFormat(buffersizeof(buffer), format2);
            
PrintToChat(i"%s"buffer);
        }
    }

I found out later. Thanks again for your re-tell <3
roohsavar is offline