Array Must Be Indexed
#5

Quote:
Originally Posted by Speaker
Посмотреть сообщение
Thanks Well U Made A Mistake
It Should Be
Код:
format(PlayerInfo[playerid][Banned_By], 256, "%s", dini_Get(file, "Banned_By"));
He didnt' make a mistake, MAX_PLAYER_NAME is defined to equal to 24, which is the maximum length a nickname on samp can be.
Why do you set it to 256?
I thought Banned_By holds the name of the player who bans the other player.

If so, it should be 24 at max. because nicknames on samp cannot be longer than this.
Reply


Messages In This Thread
Array Must Be Indexed - by Speaker - 19.07.2017, 10:54
Re: Array Must Be Indexed - by Hansrutger - 19.07.2017, 10:57
Re: Array Must Be Indexed - by Kaperstone - 19.07.2017, 11:07
Re: Array Must Be Indexed - by Speaker - 19.07.2017, 11:11
Re: Array Must Be Indexed - by Kaperstone - 19.07.2017, 11:16
Re: Array Must Be Indexed - by Hansrutger - 19.07.2017, 13:20

Forum Jump:


Users browsing this thread: 1 Guest(s)