30.10.2011, 10:11
Hi,
Lets say that I have deleted Something PVar of thatplayer.
Now I am going to use GetPVarInt(thatplayer, "Something")
What will it return?
------------------------------------------------
And how do I check if thatplayer doesn't have PVar called Something?
Can I use if(GetPVarInt(thatplayer, "Something") == IsValidPlayerID(playerid))
Because this PVar would only store ID's.
If I would have 200 slots then this would work right? :
stock IsValidPlayerID(playerid)
{
if(playerid < 199 && playerid >= 0) return true; return false;
}
Lets say that I have deleted Something PVar of thatplayer.
Now I am going to use GetPVarInt(thatplayer, "Something")
What will it return?
------------------------------------------------
And how do I check if thatplayer doesn't have PVar called Something?
Can I use if(GetPVarInt(thatplayer, "Something") == IsValidPlayerID(playerid))
Because this PVar would only store ID's.
If I would have 200 slots then this would work right? :
stock IsValidPlayerID(playerid)
{
if(playerid < 199 && playerid >= 0) return true; return false;
}