#1

hello iam using mysql script
and its work
says connected to database succesfully
but here after 20sec-2min-someone.login
server crashes and gives no thing in serverlog what i do?


OS: centos6 linex
Reply
#2

use crashdetect.so plugin.

There might be a problem somewhere in your Player Login.
Reply
#3

Load crashdetect plugin and the next time the server will crash, post the results it printed.
Reply
#4

Server Log :
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[07:34:15] 
[07:34:15] Server Plugins
[07:34:15] --------------
[07:34:15]  Loading plugin: streamer.so
[07:34:15] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[07:34:15]   Loaded.
[07:34:15]  Loading plugin: sscanf.so
[07:34:15] 

[07:34:15]  ===============================

[07:34:15]       sscanf plugin loaded.     

[07:34:15]          Version:  2.8.1        

[07:34:15]    © 2012 Alex "******" Cole  

[07:34:15]  ===============================

[07:34:15]   Loaded.
[07:34:15]  Loading plugin: mysql.so
[07:34:15] 

  > MySQL plugin R7 successfully loaded.

[07:34:15]   Loaded.
[07:34:15]  Loading plugin: Whirlpool.so
[07:34:15]  
[07:34:15]  ==================
[07:34:15]  
[07:34:15]   Whirlpool loaded
[07:34:15]  
[07:34:15]  ==================
[07:34:15]  
[07:34:15]   Loaded.
[07:34:15]  Loading plugin: crashdetect.so
[07:34:15]   CrashDetect v4.12 is OK.

[07:34:15]   Loaded.
[07:34:15]  Loaded 5 plugins.

[07:34:15] 
[07:34:15] Ban list
[07:34:15] --------
[07:34:15]  Loaded: samp.ban
[07:34:15] 
[07:34:15] 
[07:34:15] Filterscripts
[07:34:15] ---------------
[07:34:15]   Loading filterscript 'yom_buttons.amx'...
[07:34:15] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[07:34:15]   Loading filterscript 'gcustom.amx'...
[07:34:15] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[07:34:16]   Loaded 2 filterscripts.

[07:34:17] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[07:34:17]  
[07:34:17]  ======================================= 
[07:34:17]  |                                     | 
[07:34:17]  |        YSI version 3.01.0002        | 
[07:34:17]  |        By Alex "******" Cole        | 
[07:34:17]  |                                     | 
[07:34:17]  ======================================= 
[07:34:17]  
[07:34:17] This server folder has been put together by Ricky Phelps.
[07:34:17] [MySQL] (Main Pipelines) Connecting to **.**.**.**
[07:34:17] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[07:34:17] [LoadHouses] Loading data from database...
[07:34:17] [LoadDynamicDoors] Loading data from database...
[07:34:17] [LoadDynamicMapIcons] Loading data from database...
[07:34:17] [LoadTurfWars] 0 turfs loaded.
[07:34:17] [LoadPaintballArenas] 10 paintball arenas loaded.
[07:34:17] [LoadGates] 4000 gates loaded.
[07:34:17] [LoadFamilies] 16 families loaded.
[07:34:17] [LoadPoints] 9 points loaded.
[07:34:19] [LoadCDealerships] 15 dealerships loaded.
[07:34:19] [MiscLoad] Misc Loaded
[07:34:27] Number of vehicle models: 63
[07:34:27]  
[07:34:27]  ========================================== 
[07:34:27]  |                                        | 
[07:34:27]  |  A new version (v3.09.0684) of YSI is  | 
[07:34:27]  |            available from:             | 
[07:34:27]  |                                        | 
[07:34:27]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[07:34:27]  |                                        | 
[07:34:27]  | Changelog:                             | 
[07:34:27]  |                                        | 
[07:34:27]  |   3.09.0684:                           | 
[07:34:27]  |                                        | 
[07:34:27]  |   Reverted to old download location.   | 
[07:34:27]  | Improved (and fixed) version checks;   | 
[07:34:27]  | added y_bitmap, y_areas, y_races,      | 
[07:34:27]  | y_zonenames, better documentation;     | 
[07:34:27]  | MANY other bug fixes - see the github  | 
[07:34:27]  | repository for more details:           | 
[07:34:27]  |                                        | 
[07:34:27]  ========================================== 
[07:34:27]  
[07:34:27] [LoadHouses] Failed to load any houses.
[07:34:27] [LoadDynamicDoors] Failed to load any doors.
[07:34:27] [LoadDynamicMapIcons] Failed to load any map icons.
[07:37:29] Incoming connection: **.**.**.**.**
[07:37:30] [join] FirstName_LastName has joined the server (0:**.**.**.**.**)
[07:37:41] [debug] Server crashed while executing GM.amx
[07:37:41] [debug] AMX backtrace:
[07:37:41] [debug] #0 ffffffff in public OnPlayerClickPlayer () from GM.amx
-------------------
Mysql Log :
Код:
[07:34:17]  
[07:34:17]  ** MySQL Debugging disabled
[07:34:17]
-------------------
puttylog :
Код:
# cd /SA-MP/xrp
# ./samp03svr
Started server on port: 7777, with maxplayers: 500 lanmode is OFF.
Segmentation fault
#
------------------
there is no crash log:
Код:
None
------------------
what else ?
Reply
#5

Код:
[07:37:41] [debug] Server crashed while executing GM.amx
[07:37:41] [debug] AMX backtrace:
[07:37:41] [debug] #0 ffffffff in public OnPlayerClickPlayer () from GM.amx
Check your OnPlayerClickPlayer script/code.
Reply
#6

Ctrl + F
" OnPlayerClickPlayer "
Not Found

Edit :there is
OnPlayerClickMap
only
Reply
#7

Код:
[07:34:15] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[07:34:15]   Loading filterscript 'gcustom.amx'...
[07:34:15] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[07:34:16]   Loaded 2 filterscripts.

[07:34:17] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
Reply
#8

i have added new file name pawn.cfg in pawno folder as guide i saw : this is the log
Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[08:12:10] 
[08:12:10] Server Plugins
[08:12:10] --------------
[08:12:10]  Loading plugin: streamer.so
[08:12:10] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[08:12:10]   Loaded.
[08:12:10]  Loading plugin: sscanf.so
[08:12:10] 

[08:12:10]  ===============================

[08:12:10]       sscanf plugin loaded.     

[08:12:10]          Version:  2.8.1        

[08:12:10]    © 2012 Alex "******" Cole  

[08:12:10]  ===============================

[08:12:10]   Loaded.
[08:12:10]  Loading plugin: mysql.so
[08:12:10] 

  > MySQL plugin R7 successfully loaded.

[08:12:10]   Loaded.
[08:12:10]  Loading plugin: Whirlpool.so
[08:12:10]  
[08:12:10]  ==================
[08:12:10]  
[08:12:10]   Whirlpool loaded
[08:12:10]  
[08:12:10]  ==================
[08:12:10]  
[08:12:10]   Loaded.
[08:12:10]  Loading plugin: crashdetect.so
[08:12:10]   CrashDetect v4.12 is OK.
[08:12:10]   Loaded.
[08:12:10]  Loaded 5 plugins.

[08:12:10] 
[08:12:10] Ban list
[08:12:10] --------
[08:12:10]  Loaded: samp.ban
[08:12:10] 
[08:12:10] 
[08:12:10] Filterscripts
[08:12:10] ---------------
[08:12:10]   Loading filterscript 'yom_buttons.amx'...
[08:12:10] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[08:12:10]   Loading filterscript 'gcustom.amx'...
[08:12:11] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[08:12:12]   Loaded 2 filterscripts.

[08:12:12] *** Streamer Plugin: Warning: Include file version (0x26104) does not match plugin version (0x26105) (script might need to be recompiled with the latest include file)
[08:12:13]  
[08:12:13]  ======================================= 
[08:12:13]  |                                     | 
[08:12:13]  |        YSI version 3.01.0002        | 
[08:12:13]  |        By Alex "******" Cole        | 
[08:12:13]  |                                     | 
[08:12:13]  ======================================= 
[08:12:13]  
[08:12:13] This server folder has been put together by Ricky Phelps.
[08:12:13] [MySQL] (Main Pipelines) Connecting to **************
[08:12:13] [MySQL] (MainPipeline) Connection successful toward MySQL Database Server!
[08:12:13] [LoadHouses] Loading data from database...
[08:12:13] [LoadDynamicDoors] Loading data from database...
[08:12:13] [LoadDynamicMapIcons] Loading data from database...
[08:12:13] [LoadTurfWars] 0 turfs loaded.
[08:12:13] [LoadPaintballArenas] 10 paintball arenas loaded.
[08:12:13] [LoadGates] 4000 gates loaded.
[08:12:13] [LoadFamilies] 16 families loaded.
[08:12:13] [LoadPoints] 9 points loaded.
[08:12:15] [LoadCDealerships] 15 dealerships loaded.
[08:12:15] [MiscLoad] Misc Loaded
[08:12:24] Number of vehicle models: 63
[08:12:24]  
[08:12:24]  ========================================== 
[08:12:24]  |                                        | 
[08:12:24]  |  A new version (v3.09.0684) of YSI is  | 
[08:12:24]  |            available from:             | 
[08:12:24]  |                                        | 
[08:12:24]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[08:12:24]  |                                        | 
[08:12:24]  | Changelog:                             | 
[08:12:24]  |                                        | 
[08:12:24]  |   3.09.0684:                           | 
[08:12:24]  |                                        | 
[08:12:24]  |   Reverted to old download location.   | 
[08:12:24]  | Improved (and fixed) version checks;   | 
[08:12:24]  | added y_bitmap, y_areas, y_races,      | 
[08:12:24]  | y_zonenames, better documentation;     | 
[08:12:24]  | MANY other bug fixes - see the github  | 
[08:12:24]  | repository for more details:           | 
[08:12:24]  |                                        | 
[08:12:24]  ========================================== 
[08:12:24]  
[08:12:24] [LoadHouses] Failed to load any houses.
[08:12:24] [LoadDynamicDoors] Failed to load any doors.
[08:12:24] [LoadDynamicMapIcons] Failed to load any map icons.
[08:13:09] Incoming connection: *********
[08:13:09] [join] ******* has joined the server (0:***********)
[08:13:18] ******** has logged in.
[08:13:20] [debug] Server crashed while executing GM.amx
[08:13:20] [debug] AMX backtrace:
[08:13:20] [debug] #0 ffffffff in public OnPlayerClickPlayer () \pawno\include\float.inc:102
float.inc :
Код:
/* Float arithmetic
 *
 * © Copyright 1999, Artran, Inc.
 * Written by Greg Garner (gmg@artran.com)
 * Modified in March 2001 to include user defined
 * operators for the floating point functions.
 *
 * This file is provided as is (no warranties).
 */
#if defined _Float_included
  #endinput
#endif
#define _Float_included
#pragma library Float

/* Different methods of rounding */
enum floatround_method {
  floatround_round,
  floatround_floor,
  floatround_ceil,
  floatround_tozero,
  floatround_unbiased
}
enum anglemode {
  radian,
  degrees,
  grades
}

/**************************************************/
/* Convert an integer into a floating point value */
native Float:float(value);

/**************************************************/
/* Convert a string into a floating point value */
native Float:floatstr(const string[]);

/**************************************************/
/* Multiple two floats together */
native Float:floatmul(Float:oper1, Float:oper2);

/**************************************************/
/* Divide the dividend float by the divisor float */
native Float:floatdiv(Float:dividend, Float:divisor);

/**************************************************/
/* Add two floats together */
native Float:floatadd(Float:oper1, Float:oper2);

/**************************************************/
/* Subtract oper2 float from oper1 float */
native Float:floatsub(Float:oper1, Float:oper2);

/**************************************************/
/* Return the fractional part of a float */
native Float:floatfract(Float:value);

/**************************************************/
/* Round a float into a integer value */
native floatround(Float:value, floatround_method:method=floatround_round);

/**************************************************/
/* Compare two integers. If the two elements are equal, return 0.
   If the first argument is greater than the second argument, return 1,
   If the first argument is less than the second argument, return -1. */
native floatcmp(Float:oper1, Float:oper2);

/**************************************************/
/* Return the square root of the input value, same as floatpower(value, 0.5) */
native Float:floatsqroot(Float:value);

/**************************************************/
/* Return the value raised to the power of the exponent */
native Float:floatpower(Float:value, Float:exponent);

/**************************************************/
/* Return the logarithm */
native Float:floatlog(Float:value, Float:base=10.0);

/**************************************************/
/* Return the sine, cosine or tangent. The input angle may be in radian,
   degrees or grades. */
native Float:floatsin(Float:value, anglemode:mode=radian);
native Float:floatcos(Float:value, anglemode:mode=radian);
native Float:floattan(Float:value, anglemode:mode=radian);

/**************************************************/
/* Return the absolute value */
native Float:floatabs(Float:value);


/**************************************************/
#pragma rational Float

/* user defined operators */
native Float:operator*(Float:oper1, Float:oper2) = floatmul;
native Float:operator/(Float:oper1, Float:oper2) = floatdiv;
native Float:operator+(Float:oper1, Float:oper2) = floatadd;
native Float:operator-(Float:oper1, Float:oper2) = floatsub;
native Float:operator=(oper) = float;

stock Float:operator++(Float:oper)
    return oper+1.0;

stock Float:operator--(Float:oper)
    return oper-1.0;

stock Float:operator-(Float:oper)
    return oper^Float:cellmin;                  /* IEEE values are sign/magnitude */

stock Float:operator*(Float:oper1, oper2)
    return floatmul(oper1, float(oper2));       /* "*" is commutative */

stock Float:operator/(Float:oper1, oper2)
    return floatdiv(oper1, float(oper2));

stock Float:operator/(oper1, Float:oper2)
    return floatdiv(float(oper1), oper2);

stock Float:operator+(Float:oper1, oper2)
    return floatadd(oper1, float(oper2));       /* "+" is commutative */

stock Float:operator-(Float:oper1, oper2)
    return floatsub(oper1, float(oper2));

stock Float:operator-(oper1, Float:oper2)
    return floatsub(float(oper1), oper2);

stock bool:operator==(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) == 0;

stock bool:operator==(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) == 0;  /* "==" is commutative */

stock bool:operator!=(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) != 0;

stock bool:operator!=(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) != 0;  /* "!=" is commutative */

stock bool:operator>(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) > 0;

stock bool:operator>(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) > 0;

stock bool:operator>(oper1, Float:oper2)
    return floatcmp(float(oper1), oper2) > 0;

stock bool:operator>=(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) >= 0;

stock bool:operator>=(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) >= 0;

stock bool:operator>=(oper1, Float:oper2)
    return floatcmp(float(oper1), oper2) >= 0;

stock bool:operator<(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) < 0;

stock bool:operator<(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) < 0;

stock bool:operator<(oper1, Float:oper2)
    return floatcmp(float(oper1), oper2) < 0;

stock bool:operator<=(Float:oper1, Float:oper2)
    return floatcmp(oper1, oper2) <= 0;

stock bool:operator<=(Float:oper1, oper2)
    return floatcmp(oper1, float(oper2)) <= 0;

stock bool:operator<=(oper1, Float:oper2)
    return floatcmp(float(oper1), oper2) <= 0;

stock bool:operator!(Float:oper)
    return (_:oper & cellmax) == 0;

/* forbidden operations */
forward operator%(Float:oper1, Float:oper2);
forward operator%(Float:oper1, oper2);
forward operator%(oper1, Float:oper2);
Код:
102 + 103 lines


stock Float:operator++(Float:oper)
    return oper+1.0;
Reply
#9

help please
Reply
#10

This problem with the line 102 of float.inc has been reported in the past and even few weeks ago and nobody has got a solution or even an explanation of why it causes it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)