return as invalid command
#1

im trying to reload the bought vehicles with /reload but the command return as invalid "SERVER: Unknown Command"
pawn Код:
CMD:reload(playerid,params[])
{
    Loop(MAX_OV,v)
    {
        if(strlen(VehicleData[getVehicleID(v)][Vehicleowner]) >= 3)
        {
            DestroyVehicle(getVehicleID(v));
            printf("Vehicle ID: %d |> Removed!", v);
        }
        return 1;
    }
    LoadOwnedVehicles();
    return 1;
}

stock getVehicleID(vehicleid)
{
    Loop(MAX_VEHICLES, vID)
    {
        if(VehicleData[vID][VehicleID] == vehicleid)
        {
            return vID;
        }
    }
    return -1;
}
Reply


Messages In This Thread
return as invalid command - by Unknown123 - 31.07.2011, 21:26
Re: return as invalid command - by Jefff - 31.07.2011, 22:02
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:07
Re: return as invalid command - by Jefff - 31.07.2011, 22:09
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:14
Re: return as invalid command - by Jefff - 31.07.2011, 22:16
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:17
Re: return as invalid command - by Jefff - 31.07.2011, 22:19
Re: return as invalid command - by Sasino97 - 31.07.2011, 22:22
Re: return as invalid command - by Jefff - 31.07.2011, 22:29
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:39
Re: return as invalid command - by Jefff - 31.07.2011, 22:45
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:47
Re: return as invalid command - by Jefff - 31.07.2011, 22:50
Re: return as invalid command - by Unknown123 - 31.07.2011, 22:55
Re: return as invalid command - by Jefff - 31.07.2011, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)