AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Fix plugin for me plz (https://forums.alliedmods.net/showthread.php?t=172018)

kramesa 11-13-2011 18:35

Fix plugin for me plz
 
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;



Kreation 11-13-2011 18:46

Re: Fix plugin for me plz
 
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.

fysiks 11-13-2011 21:24

Re: Fix plugin for me plz
 
I "looked the plugin". What now?

kramesa 11-13-2011 22:02

Re: Fix plugin for me plz
 
Quote:

Originally Posted by fysiks (Post 1596303)
I "looked the plugin". What now?

Thank you.

Pattinho 11-14-2011 05:47

Re: Fix plugin for me plz
 
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>"); 


Dark Style 11-14-2011 06:44

Re: Fix plugin for me plz
 
Use format() and add().

fysiks 11-15-2011 17:20

Re: Fix plugin for me plz
 
Quote:

Originally Posted by Pattinho (Post 1596399)
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 (Post 1596416)
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.

Pattinho 11-15-2011 17:38

Re: Fix plugin for me plz
 
yeah agree but on my server it works so i dont see the problem what he has


All times are GMT -4. The time now is 08:35.

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