SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 16/11/2015, 10:14 PM   #21
Tixxt
Big Clucker
 
Join Date: Sep 2011
Posts: 162
Reputation: 16
Default Re: Rare error..

No can i remove that?
__________________
Tixxt is offline   Reply With Quote
Old 16/11/2015, 11:14 PM   #22
Yousha
Banned
 
Join Date: May 2013
Posts: 118
Reputation: 7
Default Re: Rare error..

Yea, but JUST remove ITS CONTENT.

like:

forward PingKick();
public PingKick()
{
return 1;
}
Yousha is offline   Reply With Quote
Old 17/11/2015, 03:13 AM   #23
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,244
Reputation: 525
Default Re: Rare error..

This is where instead of commenting out, and stripping code, you should be told to use debug messages in your code to see in fact why, it's kicking.

Use simple print statements, to the log, to show "states" and "reasons" in your code.

You'll very quickly find the problem, rather than simply copying and pasting someones attempts at "fixing" the issue.
Sew_Sumi is offline   Reply With Quote
Old 17/11/2015, 03:19 AM   #24
Tixxt
Big Clucker
 
Join Date: Sep 2011
Posts: 162
Reputation: 16
Default Re: Rare error..

Well i need someone to help me. I cant fix it 10 dollars for the one that fixes it
__________________
Tixxt is offline   Reply With Quote
Old 17/11/2015, 03:30 AM   #25
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,244
Reputation: 525
Default Re: Rare error..

What's the kicklog reason coming out as?

Removing the entire ping check by commenting out with /* comment */ could fix it, as stated before, but not being so harsh on it, by going from the line of


PHP Code:
/* if(ServerInfo[MaxPing] != 0) 
PHP Code:
    } */

    
#if defined ANTI_MINIGUN 
would remove the issue for the second. However, as stated prior, the error from your client is maybe from a car mod.

Comment out that, and try see if it does indeed fix it.

Never remove, simply comment.


Debug points can be made by simply putting
PHP Code:
print('#Debug# : Test Reason'); 
and changing the contents. It will output via server.log.
Sew_Sumi is offline   Reply With Quote
Old 17/11/2015, 03:46 AM   #26
Tixxt
Big Clucker
 
Join Date: Sep 2011
Posts: 162
Reputation: 16
Default Re: Rare error..

Removing the ping thing does not help.

This is the error

Code:
[05:45:29] [connection] ********* requests connection cookie.
[05:45:30] Incoming connection: *********** id: 0
[05:45:30] [join] Tixxt has joined the server (**********)
[05:45:30]  {0DFF2D}Tixxt {FF0000}has joined the {14FF34}Unreal FreeRoam [ Country:  | IP Address: ******* | Ping: 65535???? ]
[05:45:52] [part] Tixxt has left the server (0:0)
__________________
Tixxt is offline   Reply With Quote
Old 17/11/2015, 04:31 AM   #27
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,244
Reputation: 525
Default Re: Rare error..

Do a full clean re-install of SA.

Delete the folder it was in, and the settings files too.

Quote:
Originally Posted by Tixxt View Post
This is what is in the log:

Code:
[21:02:19] [debug] Run time error 4: "Array index out of bounds"
[21:02:19] [debug]  Accessing element at index 4 past array upper bound 3
[21:02:19] [debug] AMX backtrace:
[21:02:19] [debug] #0 000fb434 in public PingKick () from NRG[V.4.0].amx
[21:02:20] [part] Sanchezz.. has left the server (0:0)
And does this still show when you run crashdetect?
Sew_Sumi is offline   Reply With Quote
Old 17/11/2015, 10:25 AM   #28
Vince
Spam Machine
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 10,068
Reputation: 2658
Default Re: Rare error..

Quote:
Originally Posted by Tixxt View Post
The thing is. I dont have any mods? I tryd to reinstall samp did not work. help me?
I'm sorry, should have clarified. I meant invalid vehicle mods, i.e. http://wiki.sa-mp.com/wiki/AddVehicleComponent
__________________
Vince is offline   Reply With Quote
Old 18/11/2015, 03:34 PM   #29
Tixxt
Big Clucker
 
Join Date: Sep 2011
Posts: 162
Reputation: 16
Default Re: Rare error..

Its fixed!
__________________
Tixxt is offline   Reply With Quote
Old 18/11/2015, 10:04 PM   #30
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,244
Reputation: 525
Default Re: Rare error..

Quote:
Originally Posted by Tixxt View Post
Its fixed!
Should say what fixed it so next time, people can search the error.
Sew_Sumi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
rare bug exclide1 Scripting Help 3 02/08/2013 11:58 AM
A Rare Error [TDL]OGLoc Help Archive 9 10/01/2011 12:13 AM
[HELP] Rare Error justino Help Archive 5 30/11/2010 12:14 PM


All times are GMT. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.