Bug in script but don't know what.
#4

pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256];
    if(text[0] == '@' && pInfo[j][level] > 0) //Won't let the next part happen, unless the person's "level" is more than 0
    {
        format(string, sizeof(string), "[Team Admin Chat] %s[%i]: %s", pInfo[playerid][name], playerid, text[1]);

      for(new j = 0; j < MAX_PLAYERS; j++)
        {
            if(IsPlayerConnected(j) && pInfo[j][level] > 0) SendClientMessage(j, COLOR_NOTICE, string);
        }
        return 0;
    }
Try that, Sorry if it doesn't work, I haven't done much Pawn coding recently.
Reply


Messages In This Thread
Bug in script but don't know what. - by `FuTuRe- - 17.01.2010, 16:07
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:11
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:12
Re: Bug in script but don't know what. - by Burridge - 17.01.2010, 16:12
Re: Bug in script but don't know what. - by GTAguillaume - 17.01.2010, 16:13
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:14
Re: Bug in script but don't know what. - by AiVAMAN - 17.01.2010, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)