AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What the Hell, plugin only work on my dedi (https://forums.alliedmods.net/showthread.php?t=156701)

bobby3 05-10-2011 15:57

What the Hell, plugin only work on my dedi
 
Something wrong with this plugin... WHen i put into my server which is the following features...


1U
http://www.speed-on.pt/gsp/images/server_tabela.png1U Rack Serverhttp://www.speed-on.pt/gsp/images/cpu_tabela.pngIntel Core I7 920 @ 2,67GHzhttp://www.speed-on.pt/gsp/images/harddrive_tabela.png2x HardDrive 1TBhttp://www.speed-on.pt/gsp/images/ram_tabela.png12GB DDR3http://www.speed-on.pt/gsp/images/win_tabela.pngWindows Server 2008 64bits
PHP Code:

#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Some Hud message for PPG that actually work =D"
#define VERSION "9999999999.0"
#define AUTHOR "Mecca"
new players[32];
new 
num;
new 
maxplayers
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR); 
        
 
set_task(0.5,"funtime",69,"",0,"b");
 
register_clcmd("say /ajuda","helpon");
 
register_clcmd("say /ajudaoff","helpoff");
}
public 
funtime(id)
{
 
get_players(players,num);
 
maxplayers get_maxplayers()
 
set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.750.4506.01.0)
          
 for(new 
1<= maxplayersi++)
{
                   if(
players[i])
 
show_hudmessage(players[i], " PPG Help Menu ^n\
                                www.proportuguesegaming.com^n\
         ^n\
         O lider tem /menu para ajudar^n\
         em mandar nos TRs. Nao podem^n\
          fazer dias por dias, resultado^n\
          e' ban^n\
          <=========================>^n\
          Say Commands:^n\
          /regras^n\
          /menu^n\
          !vip^n\
          /mods^n\
          /rei^n\
          <=========================>^n\
          /ajuda - Liga este Menu^n\
          /ajudaoff - Desliga este Menu"
);
        
}
         
}
public 
client_connect(id)
{
 
players[id] = true;
}
public 
client_disconnect(id)
{
 
players[id] = false;
}
public 
helpon(id)
{
 
players[id] = true;
}
public 
helpoff(id)
{
 
players[id] = false;




It won't work, but when i put it into my dedicated server, there it works perfectly...
I dont know why but to me this is basically something i can't figure it out.
Thank you for just trying =P

SonicSonedit 05-10-2011 16:04

Re: What the Hell, plugin only work on my dedi
 
Quote:

Windows Server 2008 64bits

bibu 05-10-2011 16:04

Re: What the Hell, plugin only work on my dedi
 
PHP Code:

set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.750.4506.01.0

->

PHP Code:

set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.750.4506.0, -1


bobby3 05-10-2011 16:06

Re: What the Hell, plugin only work on my dedi
 
ok

bobby3 05-10-2011 16:07

Re: What the Hell, plugin only work on my dedi
 
gives warning dis match tag... 23 line

bobby3 05-10-2011 16:08

Re: What the Hell, plugin only work on my dedi
 
ANd it still doesnt appear

Sylwester 05-10-2011 16:11

Re: What the Hell, plugin only work on my dedi
 
That's because that plugin is poorly coded. Learn to edit your posts!

Quote:

Originally Posted by bibu (Post 1467036)
PHP Code:

set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.750.4506.01.0

->

PHP Code:

set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), 0.750.4506.0, -1


That's wrong. 8th parameter is Float:holdtime.

SonicSonedit 05-10-2011 16:17

Re: What the Hell, plugin only work on my dedi
 
He probably meant:
set_hudmessage
(random_num(0,255), random_num(0,255), random_num(0,255), 0.75, 0.45, 0,
6.0, 6.0, -1)

bobby3 05-10-2011 16:22

Re: What the Hell, plugin only work on my dedi
 
Warning- Tag mismatch.... Not working-.-

Sylwester 05-10-2011 16:25

Re: What the Hell, plugin only work on my dedi
 
Quote:

Originally Posted by SonicSonedit (Post 1467052)
He probably meant:
set_hudmessage
(random_num(0,255), random_num(0,255), random_num(0,255), 0.75, 0.45, 0,
6.0, 6.0, -1)

That's wrong too.


All times are GMT -4. The time now is 04:22.

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