Admin command, 2 errors? +1 rep
#1

PHP код:
 error 010invalid function or declaration
error 010
invalid function or declaration 
On those two lines:

PHP код:
if(adminCount == 0SendClientMessage(playerid,-1,"There is no admin online!");
    return 
1
Here is the whole command:

PHP код:

CMD
:admins(playerid,params[])
{
    new 
adminCount,string[128];
    new 
Name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNamesizeof(Name));
        if(
PInfo[playerid][Level] > 0) {
            
format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
            
SendClientMessage(playerid,-1,string);
            
adminCount++;
        }
    }
    if(
adminCount == 0SendClientMessage(playerid,-1,"There is no admin online!");
    return 
1;

And please help, I couldnt findout to give REP last time, but I found out to do now!
Reply


Messages In This Thread
Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:16
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:19
Re: Admin command, 2 errors? +1 rep - by Revo - 13.04.2013, 07:25
Re: Admin command, 2 errors? +1 rep - by Avi Raj - 13.04.2013, 07:27
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:28
Re: Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:32
Re: Admin command, 2 errors? +1 rep - by Revo - 13.04.2013, 07:34
Re: Admin command, 2 errors? +1 rep - by Jony_Cruze - 13.04.2013, 07:34
Re: Admin command, 2 errors? +1 rep - by Lynet - 13.04.2013, 07:35
Re: Admin command, 2 errors? +1 rep - by Potassium - 13.04.2013, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)