what happend here?
#4

Sorry, there were more mistakes than I thought

Try this:

Код:
CMD:achat(playerid, params[]) 

{ 
  new string[128],msg[128],name[MAX_PLAYER_NAME]; 
  if(pInfo[playerid][Adminlevel] >=1) 
  { 
      if(sscanf(params, "s[128]",msg)) return SCM(playerid,-1,""grey"[SYSTEM]:"red"/achat [Message]"); 
      GetPlayerName(playerid,name,sizeof(name)); 
      format(string,sizeof(string),"[Admins]: %s: %s",name,msg); 
      foreach(Player, i) // < Old loop, recommended update to the new foreach version
      { 
          if(pInfo[i][Adminlevel] >= 1) 
          { 
             SCM(i, -1,string); 
          } 
      } 
  } 
  else 
  { 
       SCM(playerid, -1, ""red"{FF0000}[SYSTEM]: This command available for administrator only."); 
  } 
  return 1; 
}
Reply


Messages In This Thread
what happend here? - by Man43 - 05.03.2017, 19:26
Re: what happend here? - by Toroi - 05.03.2017, 19:35
Re: what happend here? - by Man43 - 05.03.2017, 19:39
Re: what happend here? - by Toroi - 05.03.2017, 19:42
Re: what happend here? - by henkas - 05.03.2017, 19:43
Re: what happend here? - by Man43 - 05.03.2017, 19:46
Re: what happend here? - by Toroi - 05.03.2017, 19:52
Re: what happend here? - by Unte99 - 05.03.2017, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)