Quote:
Originally Posted by Riddick94
But, do you know, why did I use local variable in LoadHouses(); to create pickup?
Because, I'm not using iterations to check which house is which one. I don't have to loop through all houses, your code is even worse. And I'm not using OnPlayerPickUpDynamicPickup to set player position in house, did you read this callback? There's a message to show dialog, if player enters a pickup. And that's why I have this there:
pawn Код:
PlayerData[playerid][E_PLAYER_PICKEDUP_PICKUP] = pickupid;
To check in which house I'm currently standing. But probably, I'm gonna add a checkpoints there, because, when player leaves pickup his array doesn't get changed to -1.
|
Oh sorry I've read it wrong. My bad.