16.09.2017, 12:19
Am I missing something in Pawn or this condition is useless?
And about this example, AntiVehicleSpawn, what about when it called when that vehicle is in water? OnVehicleDeath should be called
https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn
Code:
const AIM_SYNC = 203; IPacket:AIM_SYNC(playerid, BitStream:bs) { new aimData[PR_AimSync]; BS_IgnoreBits(bs, 8); BS_ReadAimSync(bs, aimData); if (aimData[PR_aimZ] != aimData[PR_aimZ]) // is NaN <- { aimData[PR_aimZ] = 0.0; BS_SetWriteOffset(bs, 8); BS_WriteAimSync(bs, aimData); } return 1; }
https://github.com/urShadow/Pawn.Rak...tiVehicleSpawn