SA-MP Forums Archive
/report - Doesn't show 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /report - Doesn't show Reason (/showthread.php?tid=68928)



/report - Doesn't show Reason - Castle - 14.03.2009

Well I made this /Report Command: http://pastebin.com/f113d3bf3
Now the thing is when i type /report [PlayerID] [Reason]
like so:
Код:
/report 0 Hacking
It shows:


What wrong with my Code?



Re: /report - Doesn't show Reason - Zoopaman - 14.03.2009

You have this on line 14:
pawn Код:
rReason = strlen(cmdtext);
this sets rReason to an integrer, equal to cmdtext's length xP

replace it with this:
pawn Код:
rReason = strtok(cmdtext, idx);