Help!
#1

OK i want a car to attach another car as it's trailer. I've seen it done before and i wanted to do it myself.

Here is my script:

Quote:

if(strcmp(cmd, "/attach", true) == 0) {


if(IsPlayerInAnyVehicle(playerid))
{


new vehid;
new vehid2;
vehid = GetPlayerVehicleID(playerid);
vehid2 = GetClosestCar(playerid);

AttachTrailerToVehicle(vehid,vehid2);


}
}

I have the stocks for the getclosestcar. But when i go into the game adn type /attach it says UNKNOWN COMMAND
Reply


Messages In This Thread
Help! - by Abyss - 31.03.2009, 07:10
Re: Help! - by LarzI - 31.03.2009, 08:29
Re: Help! - by Abyss - 31.03.2009, 15:17
Re: Help! - by Abyss - 31.03.2009, 17:03
Re: Help! - by _HUN_ZeRo - 29.07.2009, 09:34

Forum Jump:


Users browsing this thread: 1 Guest(s)