Dont Have Any Idea ?
#1

Код:
dcmd_a(playerid,params[])
{
    new msg[128];
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_RED, "Unknown command. Use /cmds to see our server commands.");
 	if(sscanf(params,"s",msg))
	{
  		SendClientMessage(playerid,COLOR_RED,"USAGE: /a [Message]");
	    return 1;
	}
	format(msg,sizeof(msg),"%s:   %s",PlayerName(playerid),msg);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
		if(PlayerInfo[i][pAdmin] > 0)
		{
		    SendClientMessage(i,COLOR_PURPLE,msg);
		}
	}
	return 1;
}
Here is my selfmade admin chat , and its working fine , except that it can not display more than aprox 60-80 char.
I tried with new msg[512] but no effect :S

Where is the prob?
Reply


Messages In This Thread
Dont Have Any Idea ? - by DonWade - 07.02.2012, 20:54
Re: Dont Have Any Idea ? - by Nonameman - 07.02.2012, 21:48
Re: Dont Have Any Idea ? - by DonWade - 07.02.2012, 22:26
Re: Dont Have Any Idea ? - by Nonameman - 08.02.2012, 13:47

Forum Jump:


Users browsing this thread: 2 Guest(s)