Raised This Month: $ Target: $400
 0% 

show last 10 line


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SoccerjamTR
Member
Join Date: May 2021
Old 11-22-2022 , 07:30   show last 10 line
Reply With Quote #1

PHP Code:
public pShowNames(uIndex){
    new 
bmMotd[1680],bmAnlat;
    
bmAnlat += formatex(bmMotd[bmAnlat],charsmax(bmMotd)-bmAnlat,"<head><style>table,th,td { border: 1px solid green;color:white; } td { width:100% }</style></head>");
    
bmAnlat += formatex(bmMotd[bmAnlat],charsmax(bmMotd)-bmAnlat,"<center><ul>");    
    
bmAnlat += formatex(bmMotd[bmAnlat],charsmax(bmMotd)-bmAnlat,"<span></span>")
    new 
lTotal ArraySize(gNames),lSearchForName[128],lGetTime[128];
    if(
lTotal){
        for(new 
ilTotali++){
            
ArrayGetString(gNames,i,lSearchForName,charsmax(lSearchForName));
            
ArrayGetString(gDates,i,lGetTime,charsmax(lGetTime));
            
bmAnlat += formatex(bmMotd[bmAnlat],charsmax(bmMotd)-bmAnlat,"<li>%s %s</li>",lSearchForName,lGetTime);
        }    
    }
    
bmAnlat += formatex(bmMotd[bmAnlat],charsmax(bmMotd)-bmAnlat,"</ul><center>");
    
show_motd(uIndex,bmMotd,"");

This is motd show plugin but after 10 lines, lines don't fit on screen and i want to show last 10 lines. Player when open motd, shows 10 lines and this 10 line will be last lines. I want only the last 10 lines to appear when players open motd. Example if there is 30 lines, only last 10 line shows.

Last edited by SoccerjamTR; 11-22-2022 at 07:33.
SoccerjamTR is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode