Formatting string weird error
#3

Quote:
Originally Posted by sampkinq
Посмотреть сообщение
Код:
#include	<a_samp>

#define     MAX_NEWBIESMESSAGES     (500)
#define     MAX_MESSAGE_STR         (518)

enum NewbieMessagesInfo
{
    nMessage[MAX_MESSAGE_STR]
};
new NewbieMessageInfo[MAX_NEWBIESMESSAGES][NewbieMessagesInfo];

main()
{
}

public OnPlayerConnect(playerid)
{
	SendQuestion(playerid, "TR");
	return 1;
}

stock SendQuestion(playerid, message[])
{
    format(NewbieMessageInfo[playerid][nMessage], MAX_MESSAGE_STR, message);
}
It works, thanks!
But can you explain me what I did wrong?
Anyway, +rep
Reply


Messages In This Thread
Formatting string weird error - by StRaphael - 07.12.2018, 13:44
Re: Formatting string weird error - by sampkinq - 07.12.2018, 14:08
Re: Formatting string weird error - by StRaphael - 07.12.2018, 14:16
Re: Formatting string weird error - by StRaphael - 07.12.2018, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)