Quote:
Originally Posted by ConnorMcLeod
How many types you have ?
|
Right now just 3, but I might someday have more (max. 30). And also bools would be useless in this case.
Quote:
Originally Posted by ConnorMcLeod
Also, you are theorical and abstract, depending of what you exactly need to do, there might be better solutions.
|
I create an object (info_target) with a classname and set a different message for these objects, if they touch a player. That's why I tried to use something like that.
Btw, your code worked just fine, but I would like to understand how it really works and for what the numbers stay there. That would be these:
PHP Code:
new g_cEntityType[2048 char] // this array size is 512 cell array (2048 / 4)
// why {ent}, and not (ent) or [ent] ?
g_cEntityType{ ent } = Type
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.