Ent[33] Don't work -> Need Array help, or someting like that.
So:
I tryed with: Ent[ent] = 1 But: Wrecked_ said: [33] is only for Players. So can somoene make an example or say how I need make it then? With Array:ent or something he said, I dunno. Thanks! |
Re: Ent[33] Don't work -> Need Array help, or someting like that.
You want an array that uses entities to index it?
|
Re: Ent[33] Don't work -> Need Array help, or someting like that.
ye I think xD
Ent = ArrayCreate() Wrecked said something like that |
Re: Ent[33] Don't work -> Need Array help, or someting like that.
It's not smart to have an array to be indexed by entities, since entity indexes can range to 2000 or more.
It would be better to use special entity values, like pev_[i|f|v|e]user[1|2|3|4]. |
Re: Ent[33] Don't work -> Need Array help, or someting like that.
ye but I need set the Target of the button to 1
so: ent[target] 1 That don't work with pevs? |
Re: Ent[33] Don't work -> Need Array help, or someting like that.
Describe what you are trying to do in the plugin instead of this simple array so we can discuss solutions from better understanding the situation.
|
Re: Ent[33] Don't work -> Need Array help, or someting like that.
Quote:
|
Re: Ent[33] Don't work -> Need Array help, or someting like that.
I tested it with 33,
First buttons worked, en the rest not |
Re: Ent[33] Don't work -> Need Array help, or someting like that.
Quote:
Or you can use something like this: PHP Code:
|
Re: Ent[33] Don't work -> Need Array help, or someting like that.
@Sylwester
There is no reason for something like that. Like I said, the pev values would be best for this situation. Code:
|
| All times are GMT -4. The time now is 03:51. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.