[HELP]Several CreatePickups under 1 Variable
#5

Quote:
Originally Posted by tuuker
Посмотреть сообщение
So if i would make 3 weapon pickups under same pickup name, for example:
pawn Код:
new Weapon[3];

Weapon[0] = CreatePickup... blabla...
Weapon[1] = CreatePickup... blabla...
Weapon[2]= CreatePickup... blabla...

OnPlayerPickup
if(pickupid == Weapon[0],Weapon[1],Weapon[2]) {
 //blabla do that, that..
would work fine? As i like to use pickup type 1 so i can tell it myself when to destroy that pickup, how would i get if its [2] or [1] which one to destroy if player is at that pickup?
Yes it will , but what you mean to do with weapon[0], ? You weapon[1] or weapon[2] ? If yes then this is wrong
pawn Код:
if(pickupid == Weapon[0],Weapon[1],Weapon[2]) {
The correct code is :
pawn Код:
if(pickupid == Weapon[0] || Weapon[1] || Weapon[2]) {
Reply


Messages In This Thread
[HELP]Several CreatePickups under 1 Variable - by tuuker - 28.12.2012, 18:17
Re: [HELP]Several CreatePickups under 1 Variable - by tuuker - 28.12.2012, 19:45
Re: [HELP]Several CreatePickups under 1 Variable - by RedCrossER - 28.12.2012, 19:54
Re: [HELP]Several CreatePickups under 1 Variable - by tuuker - 28.12.2012, 20:07
Re: [HELP]Several CreatePickups under 1 Variable - by RedCrossER - 28.12.2012, 20:26
Re: [HELP]Several CreatePickups under 1 Variable - by tuuker - 28.12.2012, 20:34
Re: [HELP]Several CreatePickups under 1 Variable - by RedCrossER - 28.12.2012, 20:36
Re: [HELP]Several CreatePickups under 1 Variable - by tuuker - 28.12.2012, 21:11

Forum Jump:


Users browsing this thread: 2 Guest(s)