help me with arrays
#1

Here is my array creation:
PHP Code:
enum hInfo
{
    
FloathExt[3],
        ...
}
new 
HouseInfo[300][hInfo]; 
Using:
PHP Code:
cache_get_value_name_float(i"X"HouseInfo[i][hExt[0]]);
        
cache_get_value_name_float(i"Y"HouseInfo[i][hExt[1]]);
        
cache_get_value_name_float(i"Z"HouseInfo[i][hExt[2]]); 
Erorr:
Quote:

error 028: invalid subscript (not an array or too many subscripts): "hExt"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

Please help me
Thanks!
Reply
#2

Must be: HouseInfo[i][hExt][1]....
Reply
#3

Quote:
Originally Posted by Undef1ned
View Post
Must be: HouseInfo[i][hExt][1]....
THANKS! stupid mistake
+1 REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)