hi people i am trying to take up a project left off by someone else and the code is a mess...going through and making some changes i notice in one spot he has a function that calls:
where FN = -5 as a global constant, and it is not set to anything else anywhere else in the code.
so basically he is calling the function Player with whatever the GetPlayerID is, minus 5? that would usually make the call to Player() with something in the negative numbers....
what effect does that have? calling Player(-4) for example? will it crash the game?
JASS:
GetPlayerName(Player(GetPlayerId(GetTriggerPlayer())+FN))
where FN = -5 as a global constant, and it is not set to anything else anywhere else in the code.
so basically he is calling the function Player with whatever the GetPlayerID is, minus 5? that would usually make the call to Player() with something in the negative numbers....
what effect does that have? calling Player(-4) for example? will it crash the game?