View Single Post
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-11-2021 , 07:03   Re: SourcePawn compiler suggestion
Reply With Quote #6

Quote:
Originally Posted by DJ Tsunami View Post
You are storing strings in an integer array. So those warnings are not so useless after all.
To use different variable types in an array probably want to use enum structs.
As it turned out, the strings are perfectly stored in such a static array together with numbers, no compilation errors, not after. and even don't crashes, maybe I'm wrong, but I found a very convenient way for myself to combine many arrays (structures) into one static array (read-only strings)

You just have no idea how convenient it is to go quickly in one loop through the entire multi-level array!

Last edited by Gold Fish; 02-11-2021 at 07:07.
Gold Fish is offline