/refuel - 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: /refuel (
/showthread.php?tid=329637)
/refuel -
BigD - 29.03.2012
Hello,
How would I do an message so you could do /reufel [amount] but I want to make the CMD so you can do that, I'm using SSCANF and ZCMD
Re: /refuel -
Jochemd - 29.03.2012
Are you familiar with sscanf? It's pretty easy to be honest.
pawn Код:
CMD:buyfuel(playerid,params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new amount,vehicleid = GetPlayerVehicleID(playerid);
if(!sscanf(params,"d",amount))
{ ...
Re: /refuel -
BigD - 29.03.2012
Oh thanks for this. I was getting an error but looking on the wrong line to fix it.