11.09.2009, 03:57
INVALID_PLAYER_ID is a number, you must set your variable to INVALID_PLAYER_ID for it to work.
Best thing to do would be to change
to
pawn Code:
if ( !IsPlayerConnected( targetid ) )
{
targetid = INVALID_PLAYER_ID ;
}
pawn Code:
if (targetid != INVALID_PLAYER_ID)
pawn Code:
if ( !IsPlayerConnected( targetid ) )