Jump to content

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


sina alex

Recommended Posts

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.