16.03.2012, 09:58
Hello, I have this " Streaming DestroyPlayerObject stock, and I don't know how to make it for A Player not for all players. So, instead of DestroyObject, I wanna make it DestroyPlayerObjectEx <--- I have this code:
But I don't really know how to make the "playerid" work because when I use it it says, playerid was never used. So how can it be done?
pawn Code:
stock DestroyPlayerObjectEx(playerid, ObjectId)
{
ObjectUsed[ObjectId] = 0;
for(new i; i<MAX_PLAYERS; i++)
{
if(ObjectStreamed[i][ObjectId] == 1)
{
ObjectStreamed[i][ObjectId] = 0;
DestroyPlayerObject(i, ObjectIDS[i][ObjectId]);
}
}
}