Insert text per line
#2

Код:
new line[MAX_PLAYERS];
CMD:coin(playerid, params[])
{
  static
    sString[64],
    str[128+1],
    bool:generated = false;
  ;
  line[playerid] = random(MAX_LINES);
  for(new i; i < MAX_LINES; i++)
  {
	   strins(sString, "%i)\n", i);
     if(line[playerid] == i && !generated) {
        strcat(str, "Coins + 1");
        generated = true;
     }
     strcat(str, sString);
	}
  ShowPlayerDialog(playerid, 1562, DIALOG_STYLE_LIST, "Clicker - EvoLve.",  str, "Select", "Close");
  return 1;
}
Try this
Reply


Messages In This Thread
Insert text per line - by James585 - 18.12.2017, 19:51
Re: Insert text per line - by 0x88 - 19.12.2017, 09:14
Re: Insert text per line - by James585 - 20.12.2017, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)