error 010: invalid function or declaration
error 010: invalid function or declaration
if(adminCount == 0) SendClientMessage(playerid,-1,"There is no admin online!");
return 1;
CMD:admins(playerid,params[])
{
new adminCount,string[128];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(PInfo[playerid][Level] > 0) {
format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
SendClientMessage(playerid,-1,string);
adminCount++;
}
}
if(adminCount == 0) SendClientMessage(playerid,-1,"There is no admin online!");
return 1;
}
if(adminCount == 0) return SendClientMessage(playerid,-1,"There is no admin online!");
----
CMD:admins(playerid,params[])
{
new adminCount,string[128];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(PInfo[playerid][Level] > 0) {
format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
SendClientMessage(playerid,-1,string);
adminCount++;
}
}
if(adminCount == 0) return SendClientMessage(playerid,-1,"There is no admin online!");
return 1;
}
if(adminCount == 0) return SendClientMessage(playerid,-1,"There is no admin online!");
return 0; } |
if(adminCount == 0) return SendClientMessage(playerid,-1,"There is no admin online!");
CMD:admins(playerid,params[])
{
new adminCount,string[128];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(PInfo[playerid][Level] > 0) {
format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
SendClientMessage(playerid,-1,string);
adminCount++;
}
}
if(adminCount == 0) return SendClientMessage(playerid,-1,"There is no admin online!");
return 1;
}
CMD:admins(playerid,params[])
{
new adminCount,string[128];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
if(PInfo[playerid][Level] > 0)
{
format(string,sizeof(string),"[%s] %s",AdminLevelName(playerid),Name);
SendClientMessage(playerid,-1,string);
adminCount++;
}
else if(adminCount == 0)
{
SendClientMessage(playerid,-1,"There is no admin online!");
}
}
if(adminCount == 0)
pawn Код:
|