(This is probably a rookie mistake)
So, I'm only new to arrays, and I tried making one
new Handle:clientarray = INVALID_HANDLE;
public void OnPluginStart()
clientarray = CreateArray(MAXPLAYERS + 1);
Then, I tried this
decl String:IsInArray[MAX_NAME_LENGTH] = FindStringInArray(clientarray[attacker], dvictim);
To act for this
if (IsInArray != -1)
"FindStringInArray - Returns the index for the first occurrence of the provided string. If the string cannot be located, -1 will be returned."
But I get this
" error 028: invalid subscript (not an array or too many subscripts): "g_hArray" "
For the line when I declare the string
How would I fix this?