31.05.2015, 17:04
Hey!
I'm not lazy, but I do know a way or two to do this, but I use functions like this very common.
What's the easiest way to make this display in a dialog.
I'm looking to place the tickets with the ID in a dialog in this format.
I'm not lazy, but I do know a way or two to do this, but I use functions like this very common.
What's the easiest way to make this display in a dialog.
pawn Код:
for(new x = 1; x < MAX_VEHICLES; x++)
{
if(VehOwner[x] == PlayerSQLID[x])
{
am++;
}
if(am > 0)
{
for(new y = 1; y < MAX_TICKETS; y++)
{
if(PTVehSQLID[y] == VehicleSQLID[x])
{
am2++;
}
}
}
}
if(am == 0)return SendClientMessage(playerid, COLOUR_GREY, "You do not own any vehicles.");
if(am2 == 0)return SendClientMessage(playerid, COLOUR_GREY, "You do not have any outstanding parking tickets.");
I'm looking to place the tickets with the ID in a dialog in this format.
pawn Код:
if(n == 0)
{
format(dialogstring, sizeof(dialogstring), ""#COL_WHITE"%s", PlayerArrests[n][ar_cr]);
}
else
{
format(dialogstring, sizeof(dialogstring), "%s\n"#COL_WHITE"%s", dialogstring, PlayerArrests[n][ar_cr]);
}