Quote:
Originally Posted by DRIFT_HUNTER
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:
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");
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)
|
Hm.. I believe I have fixed it now; I changed both values below and it seems to work now...
Код:
MySQL::storeString[i];
Temp[4][MAX_PLAYER_NAME] = { ... };
So I believe it was just setting the string.. but setting it with 0 letters.. which is strange as I wouldn't think it would do that, the rest of the code is fine.
Rep++ anyway!