Jump to content
  • 0

Cum setez la toate masinile un numar de inmatriculare


onix09

Question

Deci am cautat functia, am gasito: http://wiki.sa-mp.com/wiki/SetVehicleNumberPlate [SetVehicleNumberPlate(vehicleid, numberplate[])]

Acuma pe wiki era un exemplu

[pawn]SetVehicleNumberPlate(CreateVehicle(542,2074.73071289,1089.89611816,10.51527309,0.00000000,-1,-1, -1), "Jay's Ride");[/pawn]

Dar eu vreau sa stiu cum pot sa setez la toate, nu doar la 1 :|

9zZndmN.png
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

[pawn]

for(new v=0; v<MAX_VEHICLES; v++)

{

    SetVehicleNumberPlate(v, "Numar-Veh");

}

[/pawn]

Il pui in callback-ul OnGameModeInit.

Ar fi bine sa definesti MAX_VEHICLES la ~400-500 de masini ca sa nu consumi prea multe resurse cu loop-ul asta.

[pawn]

#undef MAX_VEHICLES

#define MAX_VEHICLES 500

[/pawn]

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.