SetPVarInt
#1

It is a rather stupid question, it is necessary to establish at 0 SetPVarInt in OnPlayerConnect?
Reply
#2

it is more to avoid future bugs but no its not necessary as far as i know.
Reply
#3

Quote:
Originally Posted by vassilis
Посмотреть сообщение
it is more to avoid future bugs but no its not necessary as far as i know.
thought so, thanks for the reply friend
Reply
#4

No it's not. It's automatically set to 0 when a player connects. I would suggest that you set it if you're going to use it for player IDs. Such as:
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPVarInt(playerid, "Killer", INVALID_PLAYER_ID);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)