View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 05-30-2020 , 23:32   Re: EntRefToEntIndex and EntIndexToEntRef
Reply With Quote #2

It is a good practice because an entity index can be taken over by another entity after a while, especially the ones created by plugins. If you are using the index in the same frame you probably won't have any issue but otherwise yes.

Here has some nice tips for coding: [TUT] SourcePawn Scripting - Tips, Basics to Advanced

Search for: Storing client and entity indexes or passing them to Timers
__________________
Marttt is offline