20.04.2013, 00:42
Hello guys.
I was looking around in ravens rp and i saw this
Could anyone of you tell me where it saves or is being shown for the scripter? I cant seem to see anything that tells the scripter that someone reported a suggesstion/bug that he can see ingame?
I was looking around in ravens rp and i saw this
pawn Код:
if(strcmp(cmd, "/bug", true) == 0 || strcmp(cmd, "/suggestion", true) == 0) // Modded By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/bug [bug report]");
return 1;
}
new y,m,d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string, sizeof(string),"(%d/%d/%d)[%d:%d:%d] Bug Report of %s: %s",d,m,y,h,mi,s,sendername, (result));
BugsLog(string);
}
return 1;
}