About sending offer. - 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: About sending offer. (
/showthread.php?tid=631904)
About sending offer. -
Inceptio - 06.04.2017
Hello, Im kinda new at scripting, iv'e been working on rp script, mechanic job. I have created /repair command but I always get very confused when trying to make it as an offer to another player
e.g. /repair (playerid) (price)
Im using ZCMD&scanff.
Could anyone be so kind and help me up with this one?
Much thanks!
Re: About sending offer. -
AndreiWow - 06.04.2017
Use sscanf, an example is below:
PHP код:
if (sscanf(params, "ui", id, price)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/repair <playerid/partname> <price>\"");
Have a read thrugh those:
https://sampwiki.blast.hk/wiki/Fast_Commands
Re: About sending offer. -
Inceptio - 06.04.2017
Quote:
Originally Posted by AndreiWow
Use sscanf, an example is below:
PHP код:
if (sscanf(params, "ui", id, price)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/repair <playerid/partname> <price>\"");
Have a read thrugh those: https://sampwiki.blast.hk/wiki/Fast_Commands
|
Thank you very much!
That's exactly Iv'e been looking for.