Admin chat
#1

This is a admin chat command I coded into my script a few hours ago but I've a slight problem with it. My problem is; If I use the command without typing a text and leave it bank, It won't show sendclientmessage. It usual shows up like this, [Owner] [0]Nicholas: *Blank*

pawn Код:
CMD:achat(playerid, params[])
{
    new PlayerName[128], String[128];
    if(PlayerInfo[playerid][Admin] < 1)
    if(sscanf (params, "s[128]")) return SendClientMessage(playerid, -1, ""COL_DARKRED"[ADMIN:]"COL_WHITE" Try using"COL_DARKRED" /achat"COL_WHITE" to speak with other admins.");
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    format(String, sizeof(String),""COL_DARKRED"[%s]"COL_LIGHTBLUE" [%d] %s:"COL_DARKRED" %s", GetAdminLevel(playerid), playerid, PlayerName, params);
    SendAdminMessage(-1, String);
    Logs(String, 2);
    return 1;
}
How can I fix this?
Reply


Messages In This Thread
Admin chat - by Nicholas. - 17.06.2012, 00:54
Re: Admin chat - by WagnerPM - 17.06.2012, 00:58
Re: Admin chat - by Nicholas. - 17.06.2012, 01:11
Re: Admin chat - by misho1 - 17.06.2012, 01:19
Re: Admin chat - by Nicholas. - 17.06.2012, 01:34
Re: Admin chat - by WagnerPM - 17.06.2012, 01:39
Re: Admin chat - by .FuneraL. - 17.06.2012, 01:48
Re: Admin chat - by Nicholas. - 17.06.2012, 02:08
Re: Admin chat - by misho1 - 17.06.2012, 02:35
Re: Admin chat - by Nicholas. - 17.06.2012, 02:52

Forum Jump:


Users browsing this thread: 1 Guest(s)