Raised This Month: $ Target: $400
 0% 

help displaying motd by say command (multi-language support)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
spunko
Senior Member
Join Date: Jun 2005
Location: Ecuador
Old 05-20-2006 , 20:15   help displaying motd by say command (multi-language support)
Reply With Quote #1

hi.. im having troubles with this.. i need to display help for a pluging with multi-language support in MOTD (like /top15), but it only appear 16 letters of the entire frase.. this is the code for the MOTD, everything works fine with my entire plugin except for the issue of the 16 letters.. pliz someone help me with it.. i dunno how to make it so it could display the hole frase i have in the langauge text file.

Code:
    register_clcmd("say /mahelp", "ma_help")
Code:
public ma_help(id) {     new motd[2048], title[16],  dpos = 0       format(title, 15,"%L", LANG_PLAYER,"KH_HELP0")         new K_HELP1[16], K_HELP2[16]         format(K_HELP1, 15, "%L", LANG_PLAYER, "KH_HELP1")     format(K_HELP2, 15, "%L", LANG_PLAYER, "KH_HELP2")         dpos += format(motd[dpos], 2047-dpos,"<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:8px;}</style></head><pre><body>")     dpos += format(motd[dpos],2047-dpos, "%s ^n",K_HELP1)     dpos += format(motd[dpos],2047-dpos, "%s ^n",K_HELP2 )         show_motd(id, motd, title)           return PLUGIN_CONTINUE }

language file
Code:
[en] KH_HELP0 = MY PLUGING KH_HELP1 = I dunno what to do to see the entire line, it olny appear this: KH_HELP2 = I dunno what to   -   but no the rest

thanx..
spunko is offline
Send a message via MSN to spunko
 



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 16:27.


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