View Single Post
Old 09-22-2016, 05:42 AM   #17
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,799
Default

thanks both of you, I get it :P

Code:
//display file
gfx_setfont(2, Ariel,18);
gfx_r=1;gfx_g=gfx_b=0;
xx=30;
yy=55;
gfx_x=xx;gfx_y=yy;
i=0;
loop ( lines,
  match("%d-%d-%d", i, v11a, v11b, v11c); // Parse line i
  sprintf(str, "%d", v11a); // Convert to string for display in GFX
  gfx_drawstr(str); // Draw line str
  gfx_x=xx;
  gfx_y+=gfx_texth+3;
  i+=1;
  
);
each line get parsed into several variable,
and as extra feature, one of these is converted to string and displayed in GFX.
X-Raym is offline   Reply With Quote