{ STRING* save_string = "#100"; str_cpy(save_string,msg); str_cpy(chatmsgs[4],chatmsgs[3]); str_cpy(chatmsgs[3],chatmsgs[2]); str_cpy(chatmsgs[2],chatmsgs[1]); str_cpy(chatmsgs[1],chatmsgs[0]); str_cpy(chatmsgs[0],save_string); }
PANEL* chat_panel= { digits(0,0,"%s",*,1,chatmsgs[4]); digits(0,50,"%s",*,1,chatmsgs[3]); digits(0,100,"%s",*,1,chatmsgs[2]); digits(0,150,"%s",*,1,chatmsgs[1]); digits(0,200,"%s",*,1,chatmsgs[0]); }
int i; for(i=0; i<5; i++) chatmsgs[i] = str_create("");
PANEL* chat_panel = pan_create(NULL,0); for(i=0;i<5;i++) { chatmsgs[i] = str_create(""); pan_setdigits(chat_panel,0,0, (i*50),"%s",font_create("Arial#100"),1,chatmsgs[i]); }
Gamestudio download | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de