19.07.2017, 11:07
Quote:
I haven't done much dini but oh' well.
Inside your enum declaration you should be having something like this: enum e_PlayerInfo { Banned_By, Ban_Reason }; Have you made those two into arrays? Should be looking like this if you want it to be correct: enum e_PlayerInfo { Banned_By[MAX_PLAYER_NAME], Ban_Reason[128] }; EDIT: Nevermind I was stupid, it should maybe work like if you put it into a format. Код:
format(PlayerInfo[playerid][Banned_By], MAX_PLAYER_NAME, "%s", dini_Get(file, "Banned_By"); |
for the termination \0 cell
also, I suggest to use memcpy or strcat at least instead of format
Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2); strcpy(dest, str[], length);