Hey there, if you want to help me just answer this question, what's wrong with the code below?:
PHP Code:
new color[][][] = {
{"Blue", 0, 0, 255},
// other 9 like this one above
}
I wanted to use this into a plugin for reducing the amount of lines but when i tried to use this into a set_dhudmessage it threw an error: Argument Type Mismatch. (In the first 3 arguments)
Used it alike that: color[x][0..2]
I used x in this example bcs i used another two dimensional array that works perfectly.
Edit: i think i understand, because of "Blue" it throws this error bcs the numbers has to be strings to work bcs they re not the same type, so i can make
PHP Code:
new color[][][] = {
{"Blue", "0", "0", "255"},
// other 9 like this one above
}
And
PHP Code:
str_to_num(color[x][0])
?