21.06.2016, 03:55
Remove that zero at the end of array, or put it in quote if you want to show it.
if(strfind(Temp[i][0], "null", true) != -1) -> Unless mysql returns string with value "null" (4 characters) than it wont work. If so, try replacing:
First we check if mysql string was empty, and if it was then we put Create Character string in it. (I guess that is what you want)
if(strfind(Temp[i][0], "null", true) != -1) -> Unless mysql returns string with value "null" (4 characters) than it wont work. If so, try replacing:
pawn Код:
if(strfind(Temp[i][0], "null", true) != -1) strcat((Temp[i][0] = EOS, Temp[i]), "Create Character", 17);
//With these
if(strlen(Temp[i]) > 0) format(Temp[i], 17, "Create Character");