Raised This Month: $ Target: $400
 0% 

Motd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 07-12-2010 , 21:39   Motd
Reply With Quote #1

Hi again.
I have this:
PHP Code:
public ShowAllAchievements(id) {
    
    new 
ach[64], msg[2047], len
    format
(ach,63"All Achievements")
    
len format(msg,2046,"<body bgcolor=%s><font face=^"Tahoma^" size=1 color=%s>"BGColorTitleColor)
    
len += format(msg[len],2046-len,"<center><h2>%s</h2><table></center>"ShowAllAchTitle)
    
len += format(msg[len],2046-len,"<tr>")
    
len += format(msg[len],2046-len,"<td width=^"300^"><b>Name</b></td>")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_GOALS"
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_AUTOGOALS")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_ASSISTS")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_STEALS")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_BALLKILLS")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td>"id"AWARDS_LONGESTGOAL")
    
len += format(msg[len],2046-len,"<td width=^"99^"><b>%L</b></td><tr>"id"AWARDS_DISARMS")
    for (new 
i=1i<=maxplayersi++) {
        if (
is_user_bot(i) || !is_user_connected(i))
            continue
        
        new 
name[32]
        
get_user_name(iname31)
        
len += format(msg[len],2046-len,"<tr><td>%s</td><br>"name)
        
        for(new 
1x<=RECORDSx++) {
            if (
== 7)
                continue
                
            if (
!= RECORDS)
                
len += format(msg[len],2046-len,"<td>%i</td>",MadeRecord[i][x])
            else
                
len += format(msg[len],2046-len,"<td>%i</td></tr>",MadeRecord[i][x])
        }
    }
    
len += format(msg[len],2046-len,"</tr><br></table></font>")
    
len += format(msg[len],2046-len,"<br><center><font color=%s>Plugin by Mxnn</font></center>"MadeByColor)
    
    
show_motd(id msgach)
    
    return 
PLUGIN_HANDLED

But exists a problem.. When the motd is shown the title and the last msg (Plugin by Mxnn) appears in white, but all the table appears in black :S

Vars value = #FFFFFF

Anyone can help me whit this?
Mxnn 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 07:10.


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