Raised This Month: $51 Target: $400
 12% 

[FATAL ERROR] (shutting down) what does this mean..


Post New Thread Reply   
 
Thread Tools Display Modes
_lol_
Senior Member
Join Date: Apr 2009
Old 05-10-2009 , 10:32   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #11

i was asking my self if it is the problem, i have fixed bunch of arrays indexed to 30, 31, 32, etc, but the problem its not solved T_T

i want to know if maybe the problem is here...

PHP Code:
if(is_user_bot(id)) return PLUGIN_CONTINUE;

    new 
szUserName[32];
    
get_user_name(idszUserName32);
    
    new 
ip[15];
    
get_user_ip(idipcharsmax(ip), 1);

    new 
iPlayers[32], iNumi;
    
get_players(iPlayersiNum);
    
    new 
izStats[8], izBody[8]
    new 
iRankPosiRankMax
      iRankPos 
get_user_stats(id,izStats,izBody)
      
iRankMax get_statsnum()

    for(
0<= iNumi++)
    {
        new 
iPlayers[i];

        if(!
is_user_connected(x) || is_user_bot(x)) 
            continue;

        
client_cmd(x"spk %s"g_sonido_entrada);

        new 
szMessage[164];
        
format(szMessage163"^x01 The player ^x04%s ^x01Has conected to ^x04My sv^x01, His rank is ^x04%i of %i^x01, and his ip is: ^x04%s"szUserName,iRankPos,iRankMax,ip);

        
message_begin(MSG_ONEg_iMsgSayText, {0,0,0}, x);
        
write_byte  (x);
        
write_string(szMessage);
        
message_end ();
    }

    return 
PLUGIN_CONTINUE

maybe i could use emit_sound, and make the message for all, i dont know, could anybody help me?

or this code is fine?u.u
_lol_ is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 05-10-2009 , 11:04   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #12

Code:
for(i = 0; i < iNum; i++)

You have an extra iteration of the loop. The is_user_connected() call is also redundant. You can probably remove get_players() and the loop entirely and follow Hunter-Digital's first suggestion.
__________________
No support via PM.
Lee is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-10-2009 , 11:52   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #13

I never use get_players() just cache the maxplayers at plugin init and do:
PHP Code:
static i
for(1<= g_iMaxPlayersi++)
//.. etc :P 
__________________
Hunter-Digital is offline
_lol_
Senior Member
Join Date: Apr 2009
Old 05-10-2009 , 13:18   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #14

i have fixed it i think...the code is like this

PHP Code:
if(is_user_bot(id)) return PLUGIN_CONTINUE;

    new 
szUserName[32];
    
get_user_name(idszUserName32);
    
    new 
ip[15];
    
get_user_ip(idipcharsmax(ip), 1);
    
    new 
izStats[8], izBody[8]
    new 
iRankPosiRankMax
      iRankPos 
get_user_stats(id,izStats,izBody)
      
iRankMax get_statsnum()

    
ColorChat(0NORMAL"^x01 El jugador ^x04%s ^x01se conecto a ^x04Positive^x01, Su rank es ^x04%i de %i^x01, y su ip es: ^x04%s"szUserName,iRankPos,iRankMax,ip);
    
emit_sound(0CHAN_AUTOg_sonido_entrada1.0ATTN_NORM0PITCH_NORM
lol xd
_lol_ is offline
hajrullah
Junior Member
Join Date: Nov 2008
Old 11-20-2009 , 14:14   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #15

Quote:
Originally Posted by _lol_ View Post
yeah thanks man, i will check the arrays and then start removing plugins

please if you find solution tell us cuz and my two servers have that problem
hajrullah is offline
dnbx
Junior Member
Join Date: Nov 2009
Old 08-11-2010 , 17:49   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #16

up
dnbx is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 08-11-2010 , 22:31   Re: [FATAL ERROR] (shutting down) what does this mean..
Reply With Quote #17

Quote:
Originally Posted by dnbx View Post
up
What the fuck ?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
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 13:21.


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