09.05.2016, 17:07
Hello guys,
Just got a small problem which has only just started to appear, I am trying to display the character names and if there is no row, then it just shows "Create Character" however it shows a strange character for the middle item.
Just got a small problem which has only just started to appear, I am trying to display the character names and if there is no row, then it just shows "Create Character" however it shows a strange character for the middle item.
Код:
public OnPlayerCharacterSelection(playerid) { Debug(DEBUG_CALLBACK_SQL, "OnPlayerCharacterSelection(%i)", playerid); print("OnPlayerCharacterSelection Called."); MySQL::getData(rows, fields); for(new i = 0; i < rows+1; i++) { MySQL::storeString(i, 0, Temp[i]); if(strfind(Temp[i], "null", true) != -1) strcat((Temp[i][0] = EOS, Temp[i]), "Create Character", 17); } format(str, sizeof(str), "%s\n%s\n%s", Temp[0], Temp[1], Temp[2]); ShowPlayerDialog(playerid, DIALOG_ACCOUNT, DIALOG_STYLE_LIST, ""SVR_NAME" - Account", str, DIALOG_BUTTON_SELECT, DIALOG_BUTTON_EXIT); }
