04.04.2011, 00:52
~Yoshi: If it only started happening recently and you did not change anything about the plugin, then it's almost certainly a problem with your script. There's even one thing I noticed while looking at the code you posted:
Why are you using Streamer_UpdateEx 26 times in a row? It only needs to be used once! That may be contributing to a lot of your problems if people are using the teleport command frequently. Also, right after the call to TelePlayer in dcmd_wff is a call to LoadDynamicObjectsForPlayer. What does that function do? If it creates objects for players who are teleporting, then they will see the objects only after they have been teleported. Doing something like that is better suited for when the player first connects to the server.
I think you need to check your usage of the plugin's natives and callbacks. If you're having trouble finding the conflicts, remove everything but your CreateDynamicObject lines and work from there.
pawn Код:
new car = GetPlayerVehicleID(playerid);
for(new t = 0; t < 25; t++) // IDK what this loop is good for, but it has been made by the previous owner.
{
Streamer_UpdateEx(playerid, posX, posY, posZ);
SetVehiclePos(car, posX, posY, posZ);
}
Streamer_UpdateEx(playerid, posX, posY, posZ);
SetVehiclePos(car, posX, posY, posZ);
I think you need to check your usage of the plugin's natives and callbacks. If you're having trouble finding the conflicts, remove everything but your CreateDynamicObject lines and work from there.