Generating Different Information on Each Line of the Dialog
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
You're overwriting "string" all the time, so it'll only display the last one. Change this:
pawn Код:
format(string, sizeof(string), "[ID:%d] [PosX:%f] [PosY:%f] [PosZ:%f]\n", rows, DS[i][DsLocX], DS[i][DsLocY], DS[i][DsLocZ]);
into this:
pawn Код:
format(string, sizeof(string), "%s[ID:%d] [PosX:%f] [PosY:%f] [PosZ:%f]\n", string, i, DS[i][DsLocX], DS[i][DsLocY], DS[i][DsLocZ]);
Oh, okay, now that I find easier to understand.
This'll solve my issue? There's no need to change any other part of the code, right?


Btw:

I changed 1000 cells in the string variable to 300 and that caused some of the code not to appear, is there any way I can get the amount of required cells and just put them inside the string?
Because if I do not do that then the information would stop if I don't have enough cells.

Is it possible to do something like that?
Reply


Messages In This Thread
Generating Different Information on Each Line of the Dialog - by Ox1gEN - 14.12.2014, 12:43
Re: Generating Different Information on Each Line of the Dialog - by Lordzy - 14.12.2014, 12:52
Re: Generating Different Information on Each Line of the Dialog - by Ox1gEN - 14.12.2014, 12:57
Re: Generating Different Information on Each Line of the Dialog - by Vince - 14.12.2014, 13:46
Re: Generating Different Information on Each Line of the Dialog - by Ox1gEN - 14.12.2014, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)