sina alex Posted November 25, 2022 Report Share Posted November 25, 2022 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 Quote Link to comment Share on other sites More sharing options...
irinelbro69 Posted November 25, 2022 Report Share Posted November 25, 2022 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]); 1 Quote Link to comment Share on other sites More sharing options...
sina alex Posted November 25, 2022 Author Report Share Posted November 25, 2022 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? Quote Link to comment Share on other sites More sharing options...
irinelbro69 Posted November 25, 2022 Report Share Posted November 25, 2022 24 minutes ago, sina alex said: thank you problem got fixed, can we talk about samp server coding in pm? yes, we can Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.