#5

PHP код:
cmd:bug(playerid,params[])
{
    new 
text[256];
    if(
sscanf(params"s"text)) return SendClientMessage(playeridCOLOR_RED"USAGE: /bug (bug)");    
    new 
bug[256];    
    
format(bugsizeof bug"%s Has Reported A Bug. Description: %s"PlayerName(pID), text);
              
//I think u want to send this sentence ^ to the admins :D so just add 1 more sendclientmessage
    
SendClientMessage(playerid,COLOR_RED,"Thank you for reporting a Bug");
    new
    
File:lFile fopen("Bugs.txt"io_append),
    
logData[250],
    
fyearfmonthfday,
    
fhourfminutefsecond;
    
getdate(fyearfmonthfday);
    
gettime(fhourfminutefsecond);
    
format(logDatasizeof(logData),"[%02d/%02d/%04d %02d:%02d:%02d] %s: %s \r\n"fdayfmonthfyearfhourfminutefsecondgetPlayerName(playerid), text);
    
fwrite(lFilelogData);
    
fclose(lFile);
    return 
1;

if there are some misstakes sry
but i think ti should work
Reply


Messages In This Thread
Bug - by Ananisiki - 15.04.2014, 19:41
Re: Bug - by Ananisiki - 16.04.2014, 11:34
Re: Bug - by NovaGaming - 16.04.2014, 11:38
Re: Bug - by BroZeus - 16.04.2014, 11:38
AW: Bug - by BiosMarcel - 16.04.2014, 11:49
Re: Bug - by Ananisiki - 16.04.2014, 14:05
Re: Bug - by NovaGaming - 16.04.2014, 14:17
Re: Bug - by Konstantinos - 16.04.2014, 14:26
Re: Bug - by Ananisiki - 16.04.2014, 14:28
Re: Bug - by NovaGaming - 16.04.2014, 14:32

Forum Jump:


Users browsing this thread: 2 Guest(s)