[Ajuda] /rbug
#3

pawn Код:
if(strcmp(cmd, "/rbug", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[256];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
return true;
}
getdate(Ano, Mes, Dia);
gettime(Hora, Minuto, Segundo);
new OPS[256];
SendClientMessage(playerid, Branco, "Obrigado, por relatar este BUG, o servidor agradece !!");
new File:filebug;
filebug = fopen("BUGS.pwn",io_append);
format(OPS, 256, "//>================= [ %d/%d/%d as %d:%d:%d ] =================<\n\n//Por: %s\nBUG: %s\n\n",
Dia, Mes, Ano,
Hora, Minuto, Segundo,
PlayerName(playerid),
result);
fwrite(filebug,OPS);
fclose(filebug);
SendClientMessage(playerid, Verde, "(INFO) BUG salvo com sucesso!");
}
return true;
}
Reply


Messages In This Thread
/rbug - by ZaturN - 27.12.2013, 21:04
Re: /rbug - by Kyl3 - 27.12.2013, 21:19
Re: /rbug - by unamed - 27.12.2013, 21:24

Forum Jump:


Users browsing this thread: 1 Guest(s)