SA-MP Forums Archive
Trash Report With Reason - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Trash Report With Reason (/showthread.php?tid=403983)



Trash Report With Reason - R9 - 01.01.2013

I want a command there i can trash a report with reason

Example:
has denied your report, reason:


Re: Trash Report With Reason - Ryuuji Takasu - 01.01.2013

Well we aren't your scripting slaves,why not make one?


Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by JerryBean
Посмотреть сообщение
Well we aren't your scripting slaves,why not make one?
You know why i did make this? Beoucse i have try to make one but i'm failing so now i'm asking if someone can make it for me.


Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Have you tried taking existing similar commands, such as those on the wiki, and modifying them? Or looking at existing modes for something similar?
Yes i have try, but i can't i'm failing so can someone please make it for me


Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
OK, well post what you've tried so we don't repeat work, and then we can guide you from where you are now.
Why not only script one fast for me?


Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Because then you don't learn anything. And this isn't the place to get others to do it for you, there's a dedicated pinned topic for that. This is the place to get people to help you with your scripting.
Ok, this time please can u make one?


Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
No, and I just told you why:



I don't understand why posting the code you claim to have already tried to write is so difficult. Do you not know how to copy and paste? I can teach you that! Do you not know how to use [pawn] tags or pastebin to post code? I can teach you that too. Or could it be that you are just lying and haven't written anything, and instead want others to do it all for you? In which case, as I said, this isn't the right place to ask.
Now i got this problem, when i write in reason, it's not showing to the player

pawn Код:
CMD:tr(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
new string[128],reason[128], reportid;
if(sscanf(params, "ds[128]", reportid,reason)) return SendClientMessageEx(playerid, COLOR_WHITE,"USAGE: /tr [reportid] [reason]");

if(reportid < 0 || reportid > 999) { SendClientMessageEx(playerid, COLOR_GREY, " Report ID not below 0 or above 999!"); return 1; }
if(Reports[reportid][BeingUsed] == 0)
{
SendClientMessageEx(playerid, COLOR_GREY, " That report ID is not being used!");
return 1;
}
if(!IsPlayerConnected(Reports[reportid][ReportFrom]))
{
SendClientMessageEx(playerid, COLOR_GREY, " The reporter has disconnected !");
Reports[reportid][ReportFrom] = 999;
Reports[reportid][BeingUsed] = 0;
return 1;
}
format(string, sizeof(string), "AdmCmd: %s has trashed the report from %s.", GetPlayerNameEx(playerid), GetPlayerNameEx(Reports[reportid][ReportFrom]));
ABroadCast(COLOR_ORANGE, string, 2);
format(string, sizeof(string), "%s has marked your report invalid. It will not be reviewed. Please check /reporttips", GetPlayerNameEx(playerid));
SendClientMessageEx(Reports[reportid][ReportFrom], COLOR_WHITE, string);
PlayerInfo[playerid][pTrashReport]++;
Reports[reportid][ReportFrom] = 999;
Reports[reportid][BeingUsed] = 0;
Reports[reportid][TimeToExpire] = 0;
strmid(Reports[reportid][Report], "None", 0, 4, 4);
}
return 1;
}



Re: Trash Report With Reason - R9 - 01.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Because you never use the "reason" variable.
Can you add it, or how to fix it?


Re: Trash Report With Reason - R9 - 02.01.2013

Quote:
Originally Posted by ******
Посмотреть сообщение
Because you never use the "reason" variable.
Can you add that thing for me?


Re: Trash Report With Reason - ikbenremco - 02.01.2013

Cmon men if you can't do this =( maby look at samp wiki for string ect.
PHP код:
format(stringsizeof(string), "%s has marked your report invalid reason: %s"GetPlayerNameEx(playerid), reason);