08.04.2012, 09:49
This is really annoying, because I have a trucking mission and I cancel the mission if players pause. If they sit still for a few seconds it will kick them, as OnPlayerUpdate isn't being called when they are stationary. I tried to record it with FRAPS, but when FRAPS is recording it doesn't happen, so perhaps it is FPS based. This really needs to be fixed though, because it's causing a lot of problems, not just for me for others too. I tested using this code:
After attaching a trailer (either manually or with AttachTrailerToVehicle), I didn't move and the updates stopped, until I moved again.
pawn Код:
new opu_updates[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
opu_updates[playerid]++;
new updatestring[24];
format(updatestring, sizeof(updatestring), "~W~UPDATES: ~Y~%i", updates[playerid]);
GameTextForPlayer(playerid, updatestring, 3000, 3);
return 1;
}