Quote:
Originally Posted by Hardware
pawn Код:
dcmd_relatorio(playerid,params[]) { new Texto[128]; new string[256]; new Texto=strval(params); if(!strlen(params))return SendClientMessage(playerid, 0xDCDCDCAA, "Use: /relatorio [Texto]"); format(string,256,"[Relatorio] %s: %s",Nome(playerid),Texto); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && Admin[i] >= 1) SendClientMessage(i,0xDCDCDCAA,string); } } return 1; }
|
pq strval? ate onde eu vi esse codigo й pra mandar uma string
pawn Код:
dcmd_relatorio(playerid, params[])
{
if(!strlen(params))return SendClientMessage(playerid, 0xDCDCDCAA, "Use: /relatorio [Texto]");
format(params,strlen(params)+38,"[Relatorio] %s: %s",Nome(playerid),params);
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i) && Admin[i] >= 1)
SendClientMessage(i,0xDCDCDCAA,string);
}
return 1;
}