Message Help (+rep)
#1

fixed
Reply
#2

Its because, the SendClientMessageToAll or SendClientMessage shouldn't be under the looping process. i.e for(new i = 0; i <MAX_PLAYERS; i++)

You should put the message sending method outside it.
Try this one and tell me what happens.

pawn Код:
if(strcmp(cmd, "/zemioruzjeall", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1337)
            {
                for(new i; i < MAX_PLAYERS; i++)
                {
                    ResetPlayerWeapons(i);
                }
                format(string, sizeof(string), "Admin %s go odzema oruzjeto na site igraci", sendername);
                SendClientMessageToAll(COLOR_TEO, string);
            }
        }
        return 1;
    }
Reply
#3

Fixed ) Repped thanks
Reply
#4

Код:
if(strcmp(cmd, "/zemioruzjeall", true) == 0)    
{
        if(IsPlayerConnected(playerid))        
        {
            if(PlayerInfo[playerid][pAdmin] >= 1337)
            {
                for(new i; i < MAX_PLAYERS; i++)
                {
                    ResetPlayerWeapons(i);              
                }
                format(string, sizeof(string), "Admin %s go odzema oruzjeto na site igraci", sendername);                    
                SendClientMessageToAll(COLOR_TEO, string);  
            }
        }        
        return 1;
 }
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)