formatted string on dialog help
#5

Quote:
Originally Posted by masterart
View Post
pawn Code:
format(string, "%s has made you a level %d admin!", name, level);
gives the same error
Because you didn't follow the format callback's parameters correctly. You forgot to include the size of the variable you are storing the string into.

Code:
format(string, sizeof(string), "%s has made you a level %d admin!", name, level);
Reply


Messages In This Thread
formatted string on dialog help - by masterart - 09.02.2019, 12:58
Re: formatted string on dialog help - by ComDuck - 09.02.2019, 13:00
Re: formatted string on dialog help - by masterart - 09.02.2019, 13:03
Re: formatted string on dialog help - by Proxus - 09.02.2019, 13:06
Re: formatted string on dialog help - by ComDuck - 09.02.2019, 13:07
Re: formatted string on dialog help - by Mazio - 09.02.2019, 13:11
Re: formatted string on dialog help - by masterart - 09.02.2019, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)