Trailer command
#1

pawn Код:
CMD:tow(playerid, params[])
    {
    if(IsPlayerInAnyVehicle(playerid))
        {
        new vehicleid = GetPlayerVehicleID(playerid);
        new string[128];
        if(isnull(params))
            {
            SendClientMessage(playerid, -1, "Usage: /tow [VehicleID]");
            SendClientMessage(playerid, -1, "Hint: Use /dl to find the ID of the vehicle to tow");
            }
        if(!strcmp(params, "%s", false))
            {
            format(string, 3, "%s", params);
            if(GetVehicleModel(vehicleid) == 525 & 554 & 489 & 490)
                {
                AttachTrailerToVehicle(vehicleid, string);
                return 1;
                }
            }
        }
    return 0;
    }
It shows an error for the line "AttachTrailerToVehicle" How do I show the string in the function?
Reply


Messages In This Thread
Trailer command - by Mattakil - 24.04.2013, 19:54
Re: Trailer command - by Mattakil - 24.04.2013, 22:41
Re: Trailer command - by RVRP - 24.04.2013, 22:58
Re: Trailer command - by Scyattica - 24.04.2013, 23:12
Re: Trailer command - by Mattakil - 25.04.2013, 00:20
Re: Trailer command - by Scyattica - 25.04.2013, 01:26
Re: Trailer command - by Mattakil - 25.04.2013, 02:14

Forum Jump:


Users browsing this thread: 1 Guest(s)