/refuel
#1

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

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))
        { ...
Reply
#3

Oh thanks for this. I was getting an error but looking on the wrong line to fix it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)