Posts: 1,233
Threads: 269
Joined: Oct 2008
Reputation:
0
Guys I'm saving a string into map with yini. So I'm wondering how can I display tickets that are pending at player in rows.
Now it saves like this:
Tickets = Test1, test2, test3
But I want to display this In game like this:
Your Tickets:
Test1
Test2
Test3
How can I do that?
Posts: 912
Threads: 116
Joined: Jun 2012
Reputation:
0
Are you just sending a message to the people you'd like to show it too, or are you showing it in a Dialog?
Posts: 261
Threads: 40
Joined: Jul 2015
Reputation:
0
EDIT: Sorry , don't read all ... That's over my knowledge , sorry for post ..
Posts: 1,233
Threads: 269
Joined: Oct 2008
Reputation:
0
Well lets say that for test script I'm trying just to send message to players..
Posts: 1,071
Threads: 24
Joined: Aug 2014
Reputation:
0
or use "\n" in your message(probably in formatted one) so it will create a new line in your msg.
Posts: 262
Threads: 60
Joined: Jun 2011
Reputation:
0
In that case you are using multiple tickets, you need to have definition for all of them
for example
PlayerInfo[playerid][TicketInfo1]
PlayerInfo[playerid][TicketInfo2]
PlayerInfo[playerid][TicketInfo3]
And then when you want to send it use
SendClientMessage(playerid, -1, "Ticket 1 - %s",PlayerInfo[playerid][TicketInfo1] );