› Foros › Multiplataforma › Desarrollo
scrline[44].text = scrline[43].text;
scrline[43].text = scrline[42].text;
scrline[42].text = scrline[41].text;
scrline[41].text = scrline[40].text;
scrline[40].text = scrline[39].text;
scrline[39].text = scrline[38].text;
scrline[38].text = scrline[37].text;
scrline[37].text = scrline[36].text;
scrline[36].text = scrline[35].text;
scrline[35].text = scrline[34].text;
scrline[34].text = scrline[33].text;
scrline[33].text = scrline[32].text;
scrline[32].text = scrline[31].text;
scrline[31].text = scrline[30].text;
scrline[30].text = scrline[29].text;
scrline[29].text = scrline[28].text;
scrline[28].text = scrline[27].text;
scrline[27].text = scrline[26].text;
scrline[26].text = scrline[25].text;
scrline[25].text = scrline[24].text;
scrline[24].text = scrline[23].text;
scrline[23].text = scrline[22].text;
scrline[22].text = scrline[21].text;
scrline[21].text = scrline[20].text;
scrline[20].text = scrline[19].text;
scrline[19].text = scrline[18].text;
scrline[18].text = scrline[17].text;
scrline[17].text = scrline[16].text;
scrline[16].text = scrline[15].text;
scrline[15].text = scrline[14].text;
scrline[14].text = scrline[13].text;
scrline[13].text = scrline[12].text;
scrline[12].text = scrline[11].text;
scrline[11].text = scrline[10].text;
scrline[10].text = scrline[9].text;
scrline[9].text = scrline[8].text;
scrline[8].text = scrline[7].text;
scrline[7].text = scrline[6].text;
scrline[6].text = scrline[5].text;
scrline[5].text = scrline[4].text;
scrline[4].text = scrline[3].text;
scrline[3].text = scrline[2].text;
scrline[2].text = scrline[1].text;
scrline[1].text = scrline[0].text;
scrline[0].text = textoutput;
PA_OutputText(1, 0, 0, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", scrline[23].text, scrline[22].text, scrline[21].text, scrline[20].text, scrline[19].text, scrline[18].text, scrline[17].text, scrline[16].text, scrline[15].text, scrline[14].text, scrline[13].text, scrline[12].text, scrline[11].text, scrline[10].text, scrline[9].text, scrline[8].text, scrline[7].text, scrline[6].text, scrline[5].text, scrline[4].text, scrline[3].text, scrline[2].text, scrline[1].text, scrline[0].text);
int i;
for ( i=43;i==0;i--){//recorremos el bucle al reves
scrline[i+1].text = scrline[i].text;
if(i<23)
PA_OutputText(1, 0, 0, "%s\n",scrline[i].text);//como se imprime un retorno de carro en cada linea es igual que ponerlo todos juntos
}
scrline[0].text = textoutput; //realizamos la última asignación
PA_OutputText(1, 0, 0, "%s\n",scrline[0].text);//imprimimos la última asignación
void output_screen(char *textoutput)
{
// Thanks saulotmalo (EOL) to help me with this void!
int i;
for (i=SCRBUFFER-2;i==0;i--)
{
scrline[i+1].text = scrline[i].text;
}
scrline[0].text = textoutput;
for (i=0;i>SCRLINES;i++)
{
PA_OutputText(1, 0, i, "%c0%s",scrline[SCRLINES-i].text);
}
}
void output_screen(char *textoutput)
{
int i;
for (i=SCRBUFFER-2;i>=0;i--) scrline[i+1].text = scrline[i].text;
scrline[0].text = textoutput;
for (i=0;i<=SCRLINES;i++) PA_OutputText(1, 0, i, "%c0%s",scrline[SCRLINES-i].text);
}
void output_screen(char *textoutput)
{
// Thank to saulotmalo and Wonder_Boy (you make it possible), they help me with this void
int i;
for (i=SCRBUFFER-2;i>=0;i--) scrline[i+1].text = scrline[i].text;
scrline[0].text = textoutput;
clear_screen();
for (i=0;i<=SCRLINES;i++) PA_OutputText(1, 0, i, "%c0%s",scrline[SCRLINES-i].text);
}