admins online error?
#1

PHP код:
COMMAND:adminid(playeridparams[])
{
    new 
admineidseesstring[128];
    if(
Logged[playerid] == true)
    {
        
SendClientMessage(playeridCOLOR_CYAN"_________| Administraatorid |_________");
        for(new 
0<= GetMaxPlayers(); i++)
        {
            if(
IsPlayerConnected(i))
            {
                if(
PlayerInfo[i][pAdmin] >= 1)
                    {
                        
admineidsees++;
                        if(
aDuty[i] == false)
                        {
                            
format(stringsizeof(string), "%s{FFFFFF}: %s [{FF0000}Ei ole tццl{FFFFFF}]",ARNKNM(i), RPName(i));
                            
SendClientMessage(playeridCOLOR_REDstring);
                        }
                        else if(
aDuty[i] == true)
                        {
                            
format(stringsizeof(string), "%s{FFFFFF}: %s [{118A00}On tццl{FFFFFF}]",ARNKNM(i), RPName(i));
                            
SendClientMessage(playeridCOLOR_REDstring);
                        }
                    }
                }
            }
        }
if(
admineidsees == 0)
        {
            
SendClientMessage(playeridCOLOR_WHITE"Hetkel ei ole ьhtegi administraatorit sees");
        }
        else if(
admineidsees != 0)
        {
            
format(stringsizeof(string), "Hetkel on sees %d administraatorit"admineidsees);
            
SendClientMessage(playeridCOLOR_WHITEstring);
        }
    }
    return 
1;

PHP код:
(804) : error 010invalid function or declaration 
This line "return 1" ? :O
Reply


Messages In This Thread
admins online error? - by b0b - 01.08.2016, 17:35
Re: admins online error? - by F1N4L - 01.08.2016, 17:38
Re: admins online error? - by jlalt - 01.08.2016, 17:39
Re: admins online error? - by b0b - 01.08.2016, 17:42
Re: admins online error? - by F1N4L - 01.08.2016, 17:45
Re: admins online error? - by b0b - 01.08.2016, 18:07
Re: admins online error? - by J0sh... - 01.08.2016, 18:35

Forum Jump:


Users browsing this thread: 3 Guest(s)