About sending offer.
#1

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!
Reply
#2

Use sscanf, an example is below:
PHP код:
if (sscanf(params"ui"idprice)) SendClientMessage(playerid0xFF0000AA"Usage: \"/repair <playerid/partname> <price>\""); 
Have a read thrugh those: https://sampwiki.blast.hk/wiki/Fast_Commands
Reply
#3

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Use sscanf, an example is below:
PHP код:
if (sscanf(params"ui"idprice)) SendClientMessage(playerid0xFF0000AA"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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)