news ;
#1

How i can news get short I have:

Code:
new Kami1;
new Kami2;
....
new Kami45;
How to short that
Reply
#2

pawn Code:
new Kami[45];
And just a little tip, this will create 'Kami' with 44 cells, starting from 0. So like 'new Kami0, Kami1'....
Reply
#3

How must go my code to i have: new kami0; kami1;
Reply
#4

pawn Code:
new Kami[45];
Then use
pawn Code:
Kami[0]
pawn Code:
Kami[1]
And so on.
Reply
#5

OK thanks LOCK
Reply
#6

I don't really understand what your question is but I'll TRY to guess.

With this: new Kami[45]; you don't need to write new Kami1, Kami2, Kami3....It's all it that array that you crated.

If you want to access that array and you want to give it some value it will be like: (Let's say I wand to create some object and define it as Kami[2] and move it.)

pawn Code:
Kami[2] = CreateObject(....)
MoveObject(Kami[2], x,y,z....)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)