13.01.2014, 21:09
Use strlen:
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '#')
{
if(IsPlayerAdmin(playerid) && strlen(text) > 1)
{
new string[128];
format(string, sizeof(string), ""SVETLOSMEDJA"[Admin]"BELA" %s: %s", imeigraca(playerid), text[1]);
SendClientMessageToAll(-1, string);
return 0;
}
}
return 1;
}