Raised This Month: $ Target: $400
 0% 

Fix plugin for me plz


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-13-2011 , 18:35   Fix plugin for me plz
Reply With Quote #1

Look the plugin

PHP Code:
#include <amxmodx>
#include <amxmisc>

public plugin_init() 
{
    
register_clcmd("say /help""Help");
}

public 
Help(id)
{    
    static 
motd[1501], len;
    
    
len format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>");
    
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Head Shots:</B> <font color=^"white^"> - KKKKK</color></left>^n");
    
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Damage:</B> <font color=^"white^"> - KKKKK</color></left>^n");
    
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Shots:</B> <font color=^"white^"> - KKKKK</color></left>^n");
    
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Hits:</B> <font color=^"white^"> - KKKKK</color></left>^n");
    
    
    
show_motd(idmotd"Comandos");

    return 
0;

__________________

Last edited by kramesa; 11-13-2011 at 18:39.
kramesa is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 11-13-2011 , 18:46   Re: Fix plugin for me plz
Reply With Quote #2

If you don't know how to script at all, go to Suggestions/Requests.

Also, you should tell people what the problem with the plugin is if you want them to fix it for you.
__________________
Hi.
Kreation is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-13-2011 , 21:24   Re: Fix plugin for me plz
Reply With Quote #3

I "looked the plugin". What now?
__________________

Last edited by fysiks; 11-13-2011 at 21:24.
fysiks is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-13-2011 , 22:02   Re: Fix plugin for me plz
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
I "looked the plugin". What now?
Thank you.
__________________
kramesa is offline
Pattinho
Member
Join Date: Dec 2007
Old 11-14-2011 , 05:47   Re: Fix plugin for me plz
Reply With Quote #5

Would be helpful if you could say which problem do you have ?

Otherwise what i can see in your Plugin , you should change

PHP Code:
 len format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>"); 
to

PHP Code:
 len += format(motd[len], 1500,"<body bgcolor=#000000><font color=#87cefa><pre>"); 
and to put </body>

PHP Code:
 len += format(motd[len], 1500,"</body>"); 

Last edited by Pattinho; 11-14-2011 at 06:03.
Pattinho is offline
Dark Style
BANNED
Join Date: Feb 2011
Location: Brazil
Old 11-14-2011 , 06:44   Re: Fix plugin for me plz
Reply With Quote #6

Use format() and add().
Dark Style is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-15-2011 , 17:20   Re: Fix plugin for me plz
Reply With Quote #7

Quote:
Originally Posted by Pattinho View Post
Otherwise what i can see in your Plugin , you should change

PHP Code:
 len format(motd1500,"<body bgcolor=#000000><font color=#87cefa><pre>"); 
to

PHP Code:
 len += format(motd[len], 1500,"<body bgcolor=#000000><font color=#87cefa><pre>"); 
That won't change anything. Also, it I were to be super critical I would say that it is more correct to use it like it already is.


Quote:
Originally Posted by Dark Style View Post
Use format() and add().
Did you even look at the code? In fact, neither of these should be used. formatex() is the one that should be used in this case for efficiency.
__________________

Last edited by fysiks; 11-15-2011 at 17:21.
fysiks is offline
Pattinho
Member
Join Date: Dec 2007
Old 11-15-2011 , 17:38   Re: Fix plugin for me plz
Reply With Quote #8

yeah agree but on my server it works so i dont see the problem what he has
Pattinho is offline
Reply



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 08:35.


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