warnings
#1

Код:
(510) : warning 217: loose indentation
(513) : warning 217: loose indentation
(514) : warning 217: loose indentation
pawn Код:
Line 510:       return 1;
Line 513:   new message[128];
Line 514:  format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
pawn Код:
public OnPlayerText(playerid, text[])
{

    if(ismuted[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_RED,"You have been muted. You cannot chat, unless, unmuted.");
    return 0;
    }
    if(text[0]=='@')
    {
        if(PlayerInfo[playerid][pLevel]>0)
        {
        new st[128];
        format(st,128,"ADMIN %s: %s",GetName(playerid),text);
        for(new i;i<MAX_PLAYERS;i++)
        {
            if(PlayerInfo[i][pLevel]>0)
            {
                SendClientMessage(i, COLOR_YELLOW, st);

            }
        }
        return 0;
    }
    return 1;
}

  new message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    ProxDetector(30.0, playerid, message, -1);
    return 0;
}
Reply
#2

There is no errors.
Why you title it "Errors and Warnings"
If there is only warnings.

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(ismuted[playerid] == 1)
    {
        SendClientMessage(playerid,COLOR_RED,"You have been muted. You cannot chat, unless, unmuted.");
        return 0;
    }
    if(text[0]=='@')
    {
        if(PlayerInfo[playerid][pLevel]>0)
        {
            new st[128];
            format(st,128,"ADMIN %s: %s",GetName(playerid),text);
            for(new i;i<MAX_PLAYERS;i++)
            {
                if(PlayerInfo[i][pLevel]>0)
                {
                    SendClientMessage(i, COLOR_YELLOW, st);
                }
            }
        }
        return 0;
    }
    new message[128];
    format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
    ProxDetector(30.0, playerid, message, -1);
    return 0;
}
Reply
#3

I know 'cause I fixed the error and thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)