/report (ajuda)
#4

Quote:
Originally Posted by arakuta
Посмотреть сообщение
if(!sscanf
Voce esta completamente errado!

pawn Код:
CMD:report(playerid, params[])
{
   new nomeJog[128], jogReport, Motivo[120];
   GetPlayerName(jogReport, nomeJog, sizeof(nomeJog));
   if(sscanf(params, "is", jogReport, Motivo))  return SendClientMessage(playerid, rBranco, "[INFO] /Report [playerid] [motivo]");
 
   format(StringTexto, sizeof(StringTexto), "[Aviso] %s(ID:%d) reportou %s(ID:%d), pelo motivo: %s", rNome(playerid), playerid, nomeJog, jogReport, Motivo);
   SendClientMessage(playerid, rCinza, "[INFO] Report enviado aos administradores. (/Admins)");
   for (new r = 0; r != MAX_PLAYERS; r++)
   {
       if(IsPlayerConnected(r))
       {
           if(rAdminNivel[r] > 0)
           {
                SendClientMessage(r, rLaranja, StringTexto);
           }
       }
   }
   return 1;
}
Reply


Messages In This Thread
/report (ajuda) - by BodyBuilder - 12.10.2012, 21:52
Re: /report (ajuda) - by arakuta - 12.10.2012, 21:56
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 21:59
Re: /report (ajuda) - by mau.tito - 12.10.2012, 22:01
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 22:08
Re: /report (ajuda) - by mau.tito - 12.10.2012, 22:14
Re: /report (ajuda) - by BodyBuilder - 12.10.2012, 22:16

Forum Jump:


Users browsing this thread: 1 Guest(s)