SA-MP Forums Archive
"No reason entered" - 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: "No reason entered" (/showthread.php?tid=447643)



"No reason entered" - jackci - 01.07.2013

Hi,

i have a regular command which performs an action on a certain player for a reason

How do i make it so that if an admin didn't type a reason it would be automatically 'No reason' or something like that ?

Thanks


Re: "No reason entered" - GeniusPobs - 01.07.2013

This is an example:
pawn Код:
new id, reason[64];
if (sscanf(params, "dS(No reason)[64]", id, reason)) //return 0;