Raised This Month: $ Target: $400
 0% 

Index out of bounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
andrzN
Senior Member
Join Date: Jan 2010
Location: Bodø / Norway
Old 01-10-2013 , 21:48   Re: Index out of bounds
Reply With Quote #6

Quote:
Originally Posted by AngeIII View Post
if you got this error constantly you can just add this:
PHP Code:
public client_disconnect(id

    
log_amx("ID:%d",id);
    
get_user_name(id,name[id],31
    
get_user_authid(id,authid[id],31
    
log_amx("Name: %s AUTH: %s",name[id],authid[id]);
    Print(
0"%s ^01(%s)^04 has disconnected."name[id], authid[id]); 
    
log_amx("%s ^01(%s)^04 has disconnected."name[id], authid[id]);  
    return 
PLUGIN_HANDLED

and in standart logs you will see the problem. i think problem is with formatting:
get_user_name(id,name[id],31)
get_user_authid(id,authid[id],31)
The error doesn't come constantly, it comes just now and then, everything from 5min to 2 hours apart. So thats the weird part, why would it just give this error some times when this acton is used like all the time (each time a player disconnects).

But thanks, I will try that and come back with the results of the log.

Last edited by andrzN; 01-10-2013 at 21:55.
andrzN is offline
Send a message via MSN to andrzN
 



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:29.


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