[HELP]error 010: invalid function or declaration
#1

i have problem when i compile i get 3 errors

Код:
***************(9005) : error 010: invalid function or declaration
****************(9007) : error 010: invalid function or declaration
****************(9010) : error 054: unmatched closing brace ("}")
code
pawn Код:
stock Fresh()
{
    CheckHealth();
    CheckArmour();
    Update3dText();
    new hour, minute, second;
    gettime(hour, minute, second);
    new tmphour;
    new tmpminute;
    new tmpsecond;
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
     playerData[i][pAFK] ++;
        if( playerData[i][pAFK] >= 3)
        {
             format(strings,32,"Игрок на паузе: %d секунд.", playerData[i][pAFK] - 2);
             SetPlayerChatBubble(i, strings, 0xFFFF00FF, 19.0, 1500);
        }
     }
     if(IsPlayerConnected(i))
     {
            if( playerData[i][pMis] >= 3)
            {
                DelAdmin(i, playerData[i][pNames]);
            }
      }
}
Код:
9005: if(IsPlayerConnected(i))
9007: if(PlayerData[i][pMis] >= 3)
9010 : }
Reply
#2

Well maybe if you indented it properly you'd see it.

Try this.

pawn Код:
stock Fresh()
{
    CheckHealth();
    CheckArmour();
    Update3dText();
    new hour, minute, second, tmphour, tmpminute, tmpsecond, strings[128];
    gettime(hour, minute, second);
    gettime(tmphour, tmpminute, tmpsecond);
    FixHour(tmphour);
    tmphour = shifthour;
    for(new i; i<MAX_PLAYERS)
    {
        playerData[i][pAFK] ++;
        if(playerData[i][pAFK] >= 3)
        {
            format(strings,32,"Игрок на паузе: %d секунд.", playerData[i][pAFK] - 2);
            SetPlayerChatBubble(i, strings, 0xFFFF00FF, 19.0, 1500);
        }
        if(IsPlayerConnected(i))
        {
            if(playerData[i][pMis] >= 3)
            {
                DelAdmin(i, playerData[i][pNames]);
            }
        }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)