onix09 Posted April 19, 2012 Report Share Posted April 19, 2012 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 :| Link to comment Share on other sites More sharing options...
ReLoaD Posted April 19, 2012 Report Share Posted April 19, 2012 [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 More sharing options...
onix09 Posted April 19, 2012 Author Report Share Posted April 19, 2012 Nu a mers Link to comment Share on other sites More sharing options...
ReLoaD Posted April 19, 2012 Report Share Posted April 19, 2012 Loop-ul ala trebuie pus la sfarsitul OnGameModeInit .. Link to comment Share on other sites More sharing options...
onix09 Posted April 19, 2012 Author Report Share Posted April 19, 2012 testez akm si revin cu editEdit: A mers, nu aveam pus MAX_VEHICLES la define Link to comment Share on other sites More sharing options...
Bladex Posted April 19, 2012 Report Share Posted April 19, 2012 scz pt post ! Link to comment Share on other sites More sharing options...
Question
onix09
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 :|
Link to comment
Share on other sites
5 answers to this question
Recommended Posts