12.12.2010, 07:35
Hello,
I have tried to make a dcmd report command and have found out their are a few things wrong:
When i type /report id. It says everything except the reason.
When i then type /report id reason it says Usage: /report [playerid] [reason].
How would i also make it so the date is correct. it always says 0/0/0
I have tried to make a dcmd report command and have found out their are a few things wrong:
Код:
dcmd_report(playerid, params[])
{
new pName[24], string[128], pName2[24], reason[128],day, month, year;
GetPlayerName(playerid, pName, sizeof(pName));
GetPlayerName(playerid, pName2, sizeof(pName2));
if(!sscanf(params, "us", playerid, reason)) SendClientMessage(playerid, COLOR_RED, "Usage: /report [playerid] [reason]");
else {
format(string, sizeof(string),"%d/%d/%d: Report: %s [ID: %d] reported %s [ID: %d] for %s ",day, month, year, pName, playerid, pName2, playerid, reason);
SendmAdminMsg(COLOR_LIGHTRED, string);
SendClientMessage(playerid, COLOR_YELLOW, "Your report has been sent to the online admins");
}
return 1;
}
When i then type /report id reason it says Usage: /report [playerid] [reason].
How would i also make it so the date is correct. it always says 0/0/0

