Incompatibility at OnPlayerDeath
#6

Код:
SFM(Dueno, COLOR_WHITE, "Your %s were destroyed. The goberment sent it to it's parking, but not at all repaired.", VehicleNames[VehicleModel[vehicleid]-400]);
This line is outside of the for loop, so if it doesn't find a player it's going to be wasted code.

It could cause trouble in the future. If anything, that line, should be 'in' the loop, so if the car isn't owned by anyone it won't fire. That, or have a check to ensure that if the player isn't found, then it won't fire, such as setting Dueno to -1, and checking if it's not -1 before making the announcement.
Reply


Messages In This Thread
Incompatibility at OnPlayerDeath - by ByMatt20030 - 21.08.2017, 22:16
Re: Incompatibility at OnPlayerDeath - by Jefff - 21.08.2017, 22:45
Re: Incompatibility at OnPlayerDeath - by ByMatt20030 - 21.08.2017, 22:49
Re: Incompatibility at OnPlayerDeath - by Jefff - 21.08.2017, 23:16
Re: Incompatibility at OnPlayerDeath - by ByMatt20030 - 21.08.2017, 23:24
Re: Incompatibility at OnPlayerDeath - by Sew_Sumi - 22.08.2017, 02:05
Re: Incompatibility at OnPlayerDeath - by ByMatt20030 - 22.08.2017, 02:39
Re: Incompatibility at OnPlayerDeath - by TheCman - 22.08.2017, 21:07

Forum Jump:


Users browsing this thread: 1 Guest(s)