Jump to content

error 028: invalid subscript (not an array or too many subscripts)


Recommended Posts

Posted

hello i have an error when i wanna get information from my enum

#define MAX_HOUSES 1000

enum het
{

    Float:henp[3],
    Float:hexp[3]

};

new hinf[MAX_HOUSES][het];

this two var is on my enum

and its line

        cache_get_value_name_float(i, "ExteriorX", hinf[i][henp[0]]);     
        cache_get_value_name_float(i, "ExteriorY", hinf[i][henp[1]]);
        cache_get_value_name_float(i, "ExteriorZ", hinf[i][henp[2]]);

error

E:\GTA.San.Andreas\SERVER\filterscripts\HS.pwn(109) : error 028: invalid subscript (not an array or too many subscripts): "henp"

whats this error and why it showed

Posted
cache_get_value_name_float(i, "ExteriorX", hinf[i][henp][0]);     
cache_get_value_name_float(i, "ExteriorY", hinf[i][henp][1]);
cache_get_value_name_float(i, "ExteriorZ", hinf[i][henp][2]);

 

  • Thanks 1
Posted
22 minutes ago, irinelbro69 said:
cache_get_value_name_float(i, "ExteriorX", hinf[i][henp][0]);     
cache_get_value_name_float(i, "ExteriorY", hinf[i][henp][1]);
cache_get_value_name_float(i, "ExteriorZ", hinf[i][henp][2]);

 

thank you problem got fixed,

can we talk about samp server coding in pm?

Posted
24 minutes ago, sina alex said:

thank you problem got fixed,

can we talk about samp server coding in pm?

yes, we can

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.