Raised This Month: $ Target: $400
 0% 

Flagging an entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 04-25-2013 , 12:10   Re: Flagging an entity
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
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 View Post
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_cEntityTypeent } = Type 
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode