OnPlayerText Error!
#1

public OnPlayerText(playerid,text[])
{
if(text[0] == '&')
{
new str[256];

if(AdminLevel(playerid) < 1)
{
format(str,sizeof(str),"{00FFFF}Police Chat: [Name: %s] [ID:%d]: %s [Level: %s]", GetName(playerid), playerid, text[1], AdminLevel(playerid));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && AdminLevel(playerid) > 0)
{
SendClientMessage(i, 0x00FFFFFF, str);
}
}
}
}
return 0;
}

The Error: I am writing this code I can not record anything general chat.
Please Help!
Reply


Messages In This Thread
OnPlayerText Error! - by ilay65 - 06.07.2014, 22:32
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 22:42
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 23:22
Re: OnPlayerText Error! - by ilay65 - 06.07.2014, 23:59
Re: OnPlayerText Error! - by Abagail - 07.07.2014, 00:01
Re: OnPlayerText Error! - by Threshold - 07.07.2014, 00:52
Re: OnPlayerText Error! - by ilay65 - 07.07.2014, 15:54

Forum Jump:


Users browsing this thread: 1 Guest(s)