/detach
#3

Quote:
Originally Posted by Mr.Jvxmc
Посмотреть сообщение
Top of script is Trailers names

// Code

new aTrailersNames[212][] = {
{"Article Trailer"},
{"Article Trailer 2"},
{"Article Trailer 3"},
{"Petrol Trailer"},
{"Baggage Trailer A"},
{"Baggage Trailer B"},
{"Tug Stairs Trailer"},
{"Farm Trailer"},
{"Utility Trailer"}
};

// Code

if(strcmp(cmdtext, "/detach", true) == 0)
{
new vehid223;
vehid223 = GetPlayerVehicleID(playerid);
DetachTrailerFromVehicle(vehid223);
new newtext[256];
format(newtext, sizeof(newtext), "You detach your %s", aTrailersNames[model-400]);
TextDrawSetString(TextdrawText, newtext);
TextDrawShowForPlayer(playerid, TextdrawText);
SetTimer("TextdrawTextRemove", 2000, false);
return 1;
}
That won't work. You need all the vehicles names in order to do this. Also [.pawn][/.pawn] (without the .'s) your code.
Reply


Messages In This Thread
/detach - by Mr.Jvxmc - 02.10.2010, 18:17
Re: /detach - by Mr.Jvxmc - 02.10.2010, 18:53
Re: /detach - by Conroy - 02.10.2010, 19:38
Re: /detach - by Mike_Peterson - 02.10.2010, 20:41
Re: /detach - by Jefff - 02.10.2010, 21:55
Re: /detach - by Mr.Jvxmc - 03.10.2010, 10:16

Forum Jump:


Users browsing this thread: 1 Guest(s)