vStats[i][vDynamicId] = CreateDynamicVehicle(vStats[i][vModel], vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0); printf("%d %d %f %f %f %f %d %d %d %f", vStats[i][vDynamicId], vStats[i][vModel], vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0);
[19:38:30] 1 411 1746.819946 -1949.020019 14.117199 180.000000 4 2 -1 50.000000 [19:38:30] 2 400 1746.819946 -1949.020019 14.117199 180.000000 1 1 -1 50.000000
It will tell you that successful, nothing happens!
Does not create objects! Console prints, loading successfully ЧЧЧname versionЧЧЧЧ. However, the server.log into've only writes that "load successful". I have the same problem that the vehicle is not visible. Код:
CMD:veh(playerid,params[]) { new Float:POS[3]; //CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0); GetPlayerPos(playerid,POS[0],POS[1],POS[2]); new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,-1,-1,6000,300.0); if(IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"-> successful!"); SetDynamicVehicleVirtualWorld(asd, 0); SetDynamicVehicleInterior(asd, 0); PutPlayerInDynamicVehicle(playerid, asd, 0); return 1; } |
I have problem spawning vehicles.
I've made loading from mysql db and printing results looks fine, and Dynamic ID looks fine but there is no vehicle visible. Код:
vStats[i][vDynamicId] = CreateDynamicVehicle(vStats[i][vModel], vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0); printf("%d %d %f %f %f %f %d %d %d %f", vStats[i][vDynamicId], vStats[i][vModel], vStats[i][vX], vStats[i][vY], vStats[i][vZ], vStats[i][vRotation], vStats[i][vColor1], vStats[i][vColor2], -1, 50.0); Код:
[19:38:30] 1 411 1746.819946 -1949.020019 14.117199 180.000000 4 2 -1 50.000000 [19:38:30] 2 400 1746.819946 -1949.020019 14.117199 180.000000 1 1 -1 50.000000 |
Why don't you make this as a streamer add-on instead of being a full force Incognito streamer. What about when Incognito updates his streamer, you'll have to always follow and always be one step behind. Can't this just use his techniques and stuff as an add-on so players can use both plugins? Or will that cause issues?
|
It seems that for some reason the vehicles not streamed correctly, I need to check it.
|
I would suggest you to change the shortering stile.
SetDynVehicleAngularVelocity -> SetDynamicVehAngularVelocity SetDynVehicleDamageStatus -> SetDynamicVehDamageStatus OnDynamicVehDamageStatusUpdate (max len is 31 character) Why? Because this already used in samp. https://sampwiki.blast.hk/wiki/PlayerTex...tPreviewVehCol c |
Pull a Request at main Streamer GitHub repo. ask Incognito to integrate this.
|
Default maximum items: none (unlimited) |
I found the problem that caused the objects and vehicles to not stream.
Beta 5: * Delete LinkTimeOptimization Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5 |
CMD:veh(playerid,params[]) { new Float:POS[3]; //CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0); GetPlayerPos(playerid,POS[0],POS[1],POS[2]); new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,0,0,6000,300.0); if(!IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"->ERROR");//"-> successful!"); SetDynamicVehicleVirtualWorld(asd, 0); SetDynamicVehicleInterior(asd, 0); PutPlayerInDynamicVehicle(playerid, asd, 0); return 1; }
Код:
CMD:veh(playerid,params[]) { new Float:POS[3]; //CreateDynamicVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay = 60, Float:streamdistance = 100.0); GetPlayerPos(playerid,POS[0],POS[1],POS[2]); new asd = CreateDynamicVehicle(411,POS[0],POS[1],POS[2],0.0,0,0,6000,300.0); if(!IsValidDynamicVehicle (asd)) return SendClientMessage(playerid,-1,"->ERROR");//"-> successful!"); SetDynamicVehicleVirtualWorld(asd, 0); SetDynamicVehicleInterior(asd, 0); PutPlayerInDynamicVehicle(playerid, asd, 0); return 1; } Puts his car. But do not put the player in your car. Ejected from the vehicle after a certain distance. |
Sorry, I cannot understand what is the problem, can you please try to explain better or give an video or something...
Edit: Vehicles can disappear when you moving from one cell to another, the only way to fix this is to use global cell that will contain the vehicles. It will be fixed soon. |
I found the problem that caused the objects and vehicles to not stream.
Beta 5: * Delete LinkTimeOptimization Download: https://github.com/zilberman-rafael/...s/tag/v2.7.2.5 |