Краш -
DeViLsS - 19.12.2014
Code:
[13:57:24] [debug] Server crashed while executing SoL.amx
[13:57:24] [debug] AMX backtrace:
[13:57:24] [debug] #0 native fputchar () from samp03svr
[13:57:24] [debug] #1 000119e0 in ?? (921252, 1013592) from SoL.amx
[13:57:24] [debug] #2 0000a568 in public OnPlayerLogin (0) from SoL.amx
[13:57:24] [debug] Native backtrace:
[13:57:24] [debug] #0 f73fd50b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[13:57:24] [debug] #1 f73f620f in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[13:57:24] [debug] #2 f73f73fc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[13:57:24] [debug] #3 f73f7866 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[13:57:24] [debug] #4 f73fd15c in ?? () from plugins/crashdetect.so
[13:57:24] [debug] #5 f7717410 in ?? ()
[13:57:24] [debug] #6 f7484b80 in fputc () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[13:57:24] [debug] #7 0809afb2 in ?? () from ./samp03svr
[13:57:24] [debug] #8 08094054 in ?? () from ./samp03svr
[13:57:24] [debug] #9 f5c2f6e4 in ?? () from plugins/streamer.so
[13:57:24] [debug] #10 f73f8f7b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[13:57:24] [debug] #11 f73fbf78 in ?? () from plugins/crashdetect.so
[13:57:24] [debug] #12 f73fff96 in amx_Exec () from plugins/crashdetect.so
[13:57:24] [debug] #13 f73f8226 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[13:57:24] [debug] #14 f73fbcd9 in ?? () from plugins/crashdetect.so
[13:57:24] [debug] #15 f5c30370 in ?? () from plugins/streamer.so
[13:57:24] [debug] #16 f739df01 in amx_Exec () from plugins/mysql.so
[13:57:24] [debug] #17 f7377e03 in _ZN9CCallback16ProcessCallbacksEv () from plugins/mysql.so
[13:57:24] [debug] #18 f739eeb2 in ProcessTick () from plugins/mysql.so
[13:57:24] [debug] #19 080cf9f2 in ?? () from ./samp03svr
[13:57:24] [debug] #20 080ad5cc in ?? () from ./samp03svr
[13:57:24] [debug] #21 080a88ce in ?? () from ./samp03svr
[13:57:24] [debug] #22 f7436e46 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[13:57:24] [debug] #23 0804b4d1 in ?? () from ./samp03svr
в чем проблема?
Re: Краш -
cm666 - 19.12.2014
в паблике OnPlayerLogin , fputchar чтото не то содержит
Re: Краш -
DeViLsS - 19.12.2014
Code:
public OnPlayerLogin(playerid);
public OnPlayerLogin(playerid)
{
PlayerInfo[playerid][pID] = cache_get_field_content_int(0, "ID");
PlayerInfo[playerid][pReg] = cache_get_field_content_int(0, "Reg");
PlayerInfo[playerid][pSex] = cache_get_field_content_int(0, "Sex");
PlayerInfo[playerid][pAge] = cache_get_field_content_int(0, "Age");
PlayerInfo[playerid][pSkin] = cache_get_field_content_int(0, "Skin");
PlayerInfo[playerid][pRace] = cache_get_field_content_int(0, "Race");
PlayerInfo[playerid][pArrival] = cache_get_field_content_int(0, "Arrival");
PlayerInfo[playerid][pArrivalStates] = cache_get_field_content_int(0, "ArrivalStates");
PlayerInfo[playerid][pSpawn] = cache_get_field_content_int(0, "Spawn");
PlayerInfo[playerid][pDmoney] = cache_get_field_content_int(0, "DMoney");
PlayerInfo[playerid][pRmoney] = cache_get_field_content_int(0, "RMoney");
PlayerInfo[playerid][pHealth] = cache_get_field_content_float(0, "HealHP");
PlayerInfo[playerid][pAdminkaL] = cache_get_field_content_int(0, "AdminkaL");
PlayerInfo[playerid][pHelpersL] = cache_get_field_content_int(0, "HelpersL");
PlayerInfo[playerid][pLevel] = cache_get_field_content_int(0, "Level");
PlayerInfo[playerid][pExp] = cache_get_field_content_int(0, "Exp");
PlayerInfo[playerid][pKeyHouse] = cache_get_field_content_int(0, "KeyHouse");
PlayerInfo[playerid][pRentHouse] = cache_get_field_content_int(0, "RentHouse");
PlayerInfo[playerid][pLeader] = cache_get_field_content_int(0, "Leader");
PlayerInfo[playerid][pMember] = cache_get_field_content_int(0, "Member");
PlayerInfo[playerid][pRank] = cache_get_field_content_int(0, "Rank");
if(PlayerInfo[playerid][pReg] == 0) return SPD(playerid, 13, 2, "{91A0FF}Выберите расу вашего персонажа", "1. Европеоидная\n2. Негроидная\n3. Монголоидная", "Выбрать", "Выход");
new string[100]; new ip[32];
GetPlayerIp(playerid, ip, sizeof(ip));
format(string, sizeof(string), "{B22222}%s[ID:%d] {FF0000}авторизовался [ip: %s]!",PlayerInfo[playerid][pName], playerid,ip);
SendAdminMessage(-1, string);
WriteLog("EntranceLog.log",string);
SetHealth(playerid, PlayerInfo[playerid][pHealth]);
IsPlayerLogged[playerid] = 1;
for(new i=0; i < 5; i++) TextDrawShowForPlayer(playerid, TDInvBox[i]);
SetDMoney(playerid, PlayerInfo[playerid][pDmoney]);
SetRMoney(playerid, PlayerInfo[playerid][pRmoney]);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
CancelSelectTextDraw(playerid);
DeletePVar(playerid, "TDReg");
for(new i=0; i < 4; i++) TextDrawHideForPlayer(playerid, LoginAndReg[i]);
SetSpawnInfo(playerid, 255, PlayerInfo[playerid][pSkin], 0, 0, 0, 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
return 1;
}
Re: Краш -
cm666 - 19.12.2014
WriteLog("EntranceLog.log",string);
Re: Краш -
DeViLsS - 19.12.2014
Code:
stock WriteLog(const file[],string[])
{
new write[256],minute,second,hour,day,month,year;
gettime(hour,minute,second);
getdate(year,month,day);
format(write, sizeof(write), "[Logs]/%s",file);
new File:hFile = fopen(write, io_append);
format(write, sizeof(write), "[%d.%02d.%02d | %02d:%02d:%02d] %s\r\n",day,month,year,hour,minute,second,string);
for(new i; i < strlen(write); i ++) fputchar(hFile, write[i], false);
fclose(hFile);
}
Re: Краш -
Daea - 19.12.2014
public OnPlayerLogin(playerid);
public OnPlayerLogin(playerid)
Re: Краш -
DeViLsS - 19.12.2014
Quote:
Originally Posted by Daea
public OnPlayerLogin(playerid);
public OnPlayerLogin(playerid)

|
И что тут смешного?
Re: Краш -
DeViLsS - 19.12.2014
Забыл закинуть папку для логов на хостинг, Закрыто.
Re: Краш -
CamperGTA - 21.12.2014
Quote:
Originally Posted by DeViLsS
И что тут смешного?
|
правильнее так:
PHP Code:
forward OnPlayerLogin(playerid);
public OnPlayerLogin(playerid)