Array and a Dialog
#1

Is it possible to make an array for example;
pawn Код:
new LowClassCars[][] = {
"Moonbeam"
}
if it is, how would I put it into a dialog?
Reply
#2

pawn Код:
new string[512];

for(new i = 0; i < sizeof(LowClassCars); i++)
{
    format(string, sizeof(string), "%s%s\n", string, LowClassCars[i]);
}

ShowPlayerDialog(playerid, dialogid, dialogtype, header, string, button1, button2);
Adjust the string variable's size acoordingly.
Reply
#3

this is what you mean?
https://sampforum.blast.hk/showthread.php?tid=241745
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)