SA-MP Forums Archive
/ticket not working - 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: /ticket not working (/showthread.php?tid=541700)



/ticket not working - Chrillzen - 13.10.2014

Solved.


Re: /ticket not working - YanLanger - 13.10.2014

post ur errors


Re: /ticket not working - Shaneisace - 13.10.2014

Maybe its this?

Код:
if(sscanf(params, "u", criminal, amount)) return SendClientMessage(playerid, COLOR_GREY, "[Usage:] /ticket [ID] [price].");
should be:
Код:
if(sscanf(params, "ui", criminal, amount)) return SendClientMessage(playerid, COLOR_GREY, "[Usage:] /ticket [ID] [price].");
you were missing the "i" after "u", since you have two params you only specified one so no value was set for the amount


Re: /ticket not working - Chrillzen - 13.10.2014

Haha, damn I'm stupid. Thanks Shane.