/makeadmin problem
#6

Quote:
Originally Posted by whatreally
Посмотреть сообщение
Код:
CMD:makeadmin(playerid, params[]) 
{ 
   if(PlayerInfo[PID][pAdmin] >= 5 || IsPlayerAdmin(playerid))
  {
   new PID; 
   new player[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME]; 
   new string[128] 
   if(sscanf(params, "u", PID,pAdmin)) return SendClientMessage(playerid, 0xFFFF00, "/makeadmin [playerid] [adminlevel]"); 
   GetPlayerName(PID, giveplayer, sizeof(giveplayer)); 
   GetPlayerName(playerid, player, sizeof(player)); 
   PlayerInfo[PID][pAdmin] = level; 
   format(string, sizeof(string), "You are now an administrator level %d thanks to %s.", level,  player); 
   SendClientMessage(giveplayerid, 0xFFFF00, string); 
   format(string, sizeof(string), "You have given %s level %d admin.",  giveplayer,PlayerInfo[PID][pAdmin]); 
   SendClientMessage(playerid, 0xFFFF00, string); 
   if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, 0xFF0000FF, "This player isn't online." 
   return 1; 
}
Dude , you missed a bracket + he dosen't included ZCMD ...
Reply


Messages In This Thread
/makeadmin problem - by GabiXx - 01.08.2015, 17:24
Re: /makeadmin problem - by Mariciuc223 - 01.08.2015, 17:26
Re: /makeadmin problem - by GabiXx - 01.08.2015, 17:30
Re: /makeadmin problem - by Mariciuc223 - 01.08.2015, 17:31
Re: /makeadmin problem - by whatreally - 01.08.2015, 17:34
Re: /makeadmin problem - by Mariciuc223 - 01.08.2015, 17:36
Re: /makeadmin problem - by Mariciuc223 - 01.08.2015, 17:44
Re: /makeadmin problem - by GabiXx - 01.08.2015, 17:45
Re: /makeadmin problem - by Mariciuc223 - 01.08.2015, 17:46
Re: /makeadmin problem - by GabiXx - 01.08.2015, 17:53

Forum Jump:


Users browsing this thread: 2 Guest(s)