Jump to content
  • 0

Problema AttachTrailerToVehcile


Cosmin.

Question

Problema intalnita (descriere): AttachTrailerToVehicle, pun corect, trailer car definita si spawnata + new vehicleid = GetPlayerVehicleID(playerid);
Ero(area / rile) / warning-(ul / urile):  error 035: argument type mismatch (argument 1)
Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/fQxk05Qq
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Da, am cautat dar degeaba.

 

PS: nu am dat toata comanda, am mai multe lucruri unice si definite acolo..

Edited by Cosmin.
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Pune asa:

new vehicleid = GetPlayerVehicleID(playerid);
trailercar[playerid] = CreateVehicle(591, x,y,z,a, 1,1, -1);    
AttachTrailerToVehicle(trailercar, vehicleid);

Trebuie sa le pui intr-o anumita ordine ca sa functioneze, new-urile primele dupa care pot fi folosite.

Singura modalitate prin care ma puteti contacta:

http://steamcommunity.com/id/known_main

Link to comment
Share on other sites

  • 0

Salut,sintaxa corecta este aceasta:

new vehicleid = GetPlayerVehicleID(playerid);
new trailercar = CreateVehicle(591, x,y,z,a, 1,1, -1);	
AttachTrailerToVehicle(trailercar, vehicleid);

Sursa:

https://wiki.sa-mp.com/wiki/AttachTrailerToVehicle

Asta voiam sa-i zic si eu, dar nu am fost atent :@ .

Link to comment
Share on other sites

  • 0

Incearca asa

new vehicleid = GetPlayerVehicleID(playerid);
new Float:Xf, Float:Yf, Float:Zf;
GetPlayerPos(playerid, Xf, Yf, Zf);
trailercar[vehicleid] = AddStaticVehicle(591, Xf,Yf,Zf, 360,0,0);
AttachTrailerToVehicle(trailercar[vehicleid], GetPlayerVehicleID(playerid));

 

  • Upvote 1

j3V8Znq.png

5IGyOAw.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.