22.02.2015, 18:51
i have problem when i compile i get 3 errors
code
Код:
***************(9005) : error 010: invalid function or declaration ****************(9007) : error 010: invalid function or declaration ****************(9010) : error 054: unmatched closing brace ("}")
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 : }