18.12.2010, 01:04
They're just constant numbers used to symbolize a player/vehicle/whatever that's NOT possible (impossible) to exist.
The SA:MP server sends these numbers in events like OnPlayerDeath and OnVehicleDeath, which is why they're defined for us. They're are defined because you cannot change what the SA:MP server sends into your Pawn script and because SA:MP developers decided to use those numbers in the SA:MP source.
INVALID_PLAYER_ID is not a replacement for IsPlayerConnected, the usages you know of are pretty much the only usages available.. except for when creating your own "logic".
It looks like you may be over-analysing it, hopefully this clarifies.
The SA:MP server sends these numbers in events like OnPlayerDeath and OnVehicleDeath, which is why they're defined for us. They're are defined because you cannot change what the SA:MP server sends into your Pawn script and because SA:MP developers decided to use those numbers in the SA:MP source.
INVALID_PLAYER_ID is not a replacement for IsPlayerConnected, the usages you know of are pretty much the only usages available.. except for when creating your own "logic".
It looks like you may be over-analysing it, hopefully this clarifies.