Problem with array subscript in enum
#1

Hello,

pawn Код:
if(pickupid == PickupInfo[i][PickupID[0]])
I got this in my script. In the enum there is "PickupID[2]". I can write in this array. Only checking with the subscript is not working, this are the errors:

Код:
DynamicPickups.pwn(43) : error 028: invalid subscript (not an array or too many subscripts): "PickupID"
DynamicPickups.pwn(43) : warning 215: expression has no effect
DynamicPickups.pwn(43) : error 001: expected token: ";", but found "]"
DynamicPickups.pwn(43) : error 029: invalid expression, assumed zero
DynamicPickups.pwn(43) : fatal error 107: too many error messages on one line
Any idea why?

Jochem
Reply
#2

Yeah, I got this too.
Reply
#3

if(pickupid == PickupInfo[i][PickupID[0])
Reply
#4

Jochemd, what are trying to do? And what is 'i' here?
Reply
#5

My conclusion:
You have an array in a enum?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)