Thread: Poster
View Single Post
  #13  
Old 12-28-2001, 08:16 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
changeimgzoom

but systems like this need something like a breaking in it so if the text is to long it's in the next line:

example:
if(playerenters){
this.lenght=int(screenwidth/16)-10;
this.lines=int(strlen(#s(server.chat))/this.lenght);
this.actlenght=0;
this.actline=1;
for(this.i=0;this.i <= this.lines;this.i++){
showimg 201+this.i,@#e(this.actlenght,this.actlenght+this. lenght,#s(server.chat)),30,80+(this.actline*15);
changeimgvis 201+this.i,4;
this.actlenght+=this.lenght;
this.actline++;
}
}

now write something veeeeeeeeerrrrrrryyyyyyy long in the server.chat-string like

server.chat=hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiM MMMMMMMMMMMMYYYYYYYYYYYYYNNNNNNNNAAAAAAAAAAAMMMMMM MMMMMMMEEEEEEEEEIIIIIIIIIIIIISSSSSSSSSSSSSSSSSSTTT TTTTTTTTDDDDDDDDDDDOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOO

the other thin is changeimgzoom... but it's only enabled for pay servers

so it will be in multiple lines
__________________
No Webhost at the moment
Reply With Quote