SA-MP Forums Archive
Help me. LuxAdmin Error( - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me. LuxAdmin Error( (/showthread.php?tid=464520)



Help me. LuxAdmin Error( - semen7907 - 17.09.2013

Hello, help me with a problem: Sometimes, when you connect the player
restart the server.

P.S ****** translator.

PHP код:
[18:19:44] [chat] [Dm..)Pro_Tip]: /level 2
[18:19:52] [chat] [Dm..)Pro_Tip]: 
[
18:22:38] [partDm..)Pro_FrAeR has left the server (1:1)
[
18:22:50Incoming connection178.124.119.109:39785
[18:22:50] [joinKiril_Jonson has joined the server (1:178.124.119.189)
[
18:22:50] [debugServer crashed while executing moddm.amx
[18:22:50] [debugAMX backtrace:
[
18:22:50] [debug#0 native format () [080d0330] from samp03svr
[18:22:50] [debug#1 00048ac4 in public OnPlayerConnect () at C:\Documents and Settings\\Р \MOOD\moddm.pwn:5136
[18:22:50] [debugNative backtrace:
[
18:22:50] [debug#0 f73e660b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[18:22:50] [debug#1 f73dde92 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[18:22:50] [debug#2 f73df8d9 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[18:22:50] [debug#3 f73e62a0 in ?? () from plugins/crashdetect.so
[18:22:50] [debug#4 ffffe410 in __kernel_rt_sigreturn () from linux-gate.so.1
[18:22:50] [debug#5 08095207 in ?? () from ./samp03svr
[18:22:50] [debug#6 080d0392 in ?? () from ./samp03svr
[18:22:50] [debug#7 08093d14 in ?? () from ./samp03svr
[18:22:50] [debug#8 f73dd5fc in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[18:22:50] [debug#9 f73e215c in ?? () from plugins/crashdetect.so
[18:22:50] [debug#10 f73ea64d in amx_Exec () from plugins/crashdetect.so
[18:22:50] [debug#11 f73dfabb in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[18:22:50] [debug#12 f73e2100 in ?? () from plugins/crashdetect.so
[18:22:50] [debug#13 080ace59 in ?? () from ./samp03svr
[18:22:50] [debug#14 080c4ccf in ?? () from ./samp03svr
[18:22:50] [debug#15 080bbc2f in ?? () from ./samp03svr
[18:22:50] [debug#16 08071b48 in ?? () from ./samp03svr
[18:22:50] [debug#17 08071c42 in ?? () from ./samp03svr
[18:22:50] [debug#18 0807ba60 in ?? () from ./samp03svr
[18:22:50] [debug#19 080b5a2d in ?? () from ./samp03svr
[18:22:50] [debug#20 080b5bc2 in ?? () from ./samp03svr
[18:22:50] [debug#21 080b14d3 in ?? () from ./samp03svr
[18:22:50] [debug#22 f74d1627 in __libc_start_main () from /lib32/libc.so.6
[18:22:50] [debug#23 0804b521 in ?? () from ./samp03svr 
line with error: 5136
PHP код:
format(file,sizeof(file),"/LuxAdmin/Accounts/%s.sav",udb_encode(PlayerName)); 
PHP код:
//================================================== ============================
// Register & Login
//================================================== ============================
if(strlen(dini_Get("LuxAdmin/Config/aka.txt"tmp3)) == 0)
dini_Set("LuxAdmin/Config/aka.txt"tmp3PlayerName);
else
{
if( 
strfinddini_Get("LuxAdmin/Config/aka.txt"tmp3), PlayerNametrue) == -)
{
format(string,sizeof(string),"%s,%s"dini_Get("LuxAdmin/Config/aka.txt",tmp3), PlayerName);
dini_Set("LuxAdmin/Config/aka.txt"tmp3string);
}
}
if(!
udb_Exists(PlayerName2(playerid)))
SendClientMessage(playerid,orange"[Info]:>> Этот ник не зарегистрирован. (/"#RegisterCommand")");
else
{
AccInfo[playerid][Registered] = 1;
format(file,sizeof(file),"/LuxAdmin/Accounts/%s.sav",udb_encode(PlayerName)); // line error 5136
new tmp2[256]; tmp2 dini_Get(file,"Ip");
if( (!
strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1))
{
LoginPlayer(playerid);
if(
AccInfo[playerid][Level] > 0)
{
switch(
AccInfo[playerid][Level])
{
case 
1AdmRank "Админ 1 уровня";
case 
2AdmRank "Админ 2 уровня";
case 
3AdmRank "Админ 3 уровня";
case 
4AdmRank "Админ 4 уровня";
case 
5AdmRank "Админ 5 уровня";
case 
6AdmRank "Админ 6 уровня";
}
if(
AccInfo[playerid][Level] > 6)
{
AdmRank "Professional Admin";

help me please..


Re: Help me. LuxAdmin Error( - Konstantinos - 17.09.2013

Have you created the necessary folders in scriptfiles?

scriptfiles\LuxAdmin\Accounts

pawn Код:
format(file,sizeof(file),"/LuxAdmin/Accounts/%s.sav",udb_encode(PlayerName));
Do a debug.

Run your server with it inside:
pawn Код:
main( )
{
    printf( "Testing is \"%s\"", udb_encode( "Testing" ) );
}
Run your server, if the server is still running and the message appears to the console, then it's not caused by that function.

Something else would be if the size of "file" is not large and cut the path (But I doubt about it).


Re: Help me. LuxAdmin Error( - semen7907 - 17.09.2013

I'm sorry I do not quite understand, 1. scriptfiles \ LuxAdmin \ Accounts has
2. Sewn in script mode
I do not quite understand the translation, but look screen: http://s018.radikal.ru/i507/1309/2e/5eb20b57a0ba.png


Re: Help me. LuxAdmin Error( - semen7907 - 18.09.2013

up..


Re: Help me. LuxAdmin Error( - semen7907 - 19.09.2013

Closed


Re: Help me. LuxAdmin Error( - Sliceofdeath - 19.09.2013

Don't triple post

You have ... Lux Admin/Accounts folder ?