Quote:
I don't know why isn't work "containi(modelname,";")!=0" on AmxModx 1.8.2.
|
https://www.amxmodx.org/api/string/containi
"containi" returns the position in the string in which the ";" is located, so checking "!= 0" will check if it's found on any position except the first one.
Quote:
;"ModelFile" "Skin1Name" "Skin2Name" "Skin3Name"
|
Here the ";" is exactly on the first position (0), so your check is doing the opposite thing.
You should check "modelname[0] != ';'" instead or compare "containi" with "-1".
Also don't forget to use "trim" in order to remove any unwanted spaces.
__________________