Hi,
ich habe gerade eingefügt das einem das AdminLevel, sofern es nicht 0 ist, beim login ausgegeben wird doch jetzt stürzt der Server ab sobald ich mein Passwort eingebe ...
Das login sieht so aus:
case 1:// LOGIN FENSTER
{
if(strlen(inputtext) > 0)
{
new string[64];
GetPlayerName(playerid,string,MAX_PLAYER_NAME);
format(string,sizeof string,"/Accounts/%s.ini",string);
if(!strcmp(inputtext, dini_Get(string, "Passwort")))
{
PlayerInfo[playerid][pGeld] = dini_Int(string, "Geld");
PlayerInfo[playerid][pLevel] = dini_Int(string, "Level");
PlayerInfo[playerid][pAdminLevel] = dini_Int(string, "AdminLevel");
//Geld setzen
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid, PlayerInfo[playerid][pGeld]);
//Scroe setzen
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
//Narchicht und spawn
SetSpawnInfo(playerid, 0, 26, 1-1979.3802,137.8129,27.6875, 90.0, 0, 0, 0, 0, 0, 0);
SpawnPlayer(playerid);
SendClientMessage(playerid, COLOR_SEAGREEN, "Willkommen auf >Empire Bay Reallife<");
SendClientMessage(playerid, COLOR_YELLOW, "Um dir das Tutorial anzugucken verwende '/tutorial'");
new adminlvl[1];
format(adminlvl, 1, PlayerInfo[playerid][pAdminLevel], string);
if(PlayerInfo[playerid][pAdminLevel] != 0){
SendClientMessage(playerid, COLOR_RED, "Du hast dich mit Admin Level %s eingeloggt.");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Falsches Passwort");
SetTimerEx("KickPlayer", 250, 0, "d", playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Das Passwort ist zu kurz!");
}
}
Das ist der Error:
--------------------------
SA-MP Server: 0.3z
Exception At Address: 0x004989EC Module: (samp-server.exe)
Registers:
EAX: 0x68207544 EBX: 0x02B85273 ECX: 0x7FFFFFFE EDX: 0x0018F3C4
ESI: 0x0018F010 EDI: 0x0018F7EF EBP: 0x0018F05C ESP: 0x0018EFD0
EFLAGS: 0x00010202
Stack:
+0000: 0x0018F7A8 0x0018F3A8 0x02B852FC 0x00000000
+0010: 0x00000000 0x000001D8 0x01EACE68 0x00000007
+0020: 0x00000000 0x0018F040 0x00000000 0x00000000
+0030: 0x00000000 0x00000000 0x00000000 0x00000000
+0040: 0x0000001D 0x00000000 0x68207544 0xFFFFFFFF
+0050: 0x00000000 0x0100007F 0x0000C9F1 0x00455CBD
+0060: 0x00000000 0x00000001 0x004AD5A0 0x0100C9F1
+0070: 0x000001FB 0x00000800 0x00000000 0x0018F051
+0080: 0xDB5D1601 0x1F403500 0x0060E6FF 0xA4AD0A00
+0090: 0x442E8D0C 0x642E8C0C 0x8DAE8E0A 0x2D2C4DEE
+00A0: 0xCF2D0C84 0xACEEAC4E 0xC4AD6C6D 0x4EAECC0E
+00B0: 0x8CCCADEC 0xEEE504A4 0xEE8DAE8E 0x842D2C4D
+00C0: 0x010400E0 0x00000045 0x006CEA18 0x00690000
+00D0: 0x006CEC70 0x89B70006 0x00409E01 0x00000045
+00E0: 0x006CEA18 0x00690000 0x006CEC70 0x00000045
+00F0: 0x00690000 0x006CEA18 0x00000000 0x00000006
+0100: 0x0018F1BC 0x00000045 0x00690000 0x006CEA18
+0110: 0x0018F1BC 0x76F13417 0x76F13446 0x76871D33
+0120: 0x0018F524 0x006903AC 0x00690000 0x00690150
+0130: 0x00000006 0x00000000 0x00690150 0x0000004B
--------------------------
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Odin\Desktop\SAMP Server\samp-server.exe)
ntdll.dll A: 0x76EE0000 - 0x77060000 (C:\Windows\SysWOW64\ntdll.dll)
kernel32.dll A: 0x75F00000 - 0x76010000 (C:\Windows\syswow64\kernel32.dll)
KERNELBASE.dll A: 0x76A70000 - 0x76AB7000 (C:\Windows\syswow64\KERNELBASE.dll)
SHELL32.dll A: 0x748D0000 - 0x7551B000 (C:\Windows\syswow64\SHELL32.dll)
msvcrt.dll A: 0x76330000 - 0x763DC000 (C:\Windows\syswow64\msvcrt.dll)
SHLWAPI.dll A: 0x768D0000 - 0x76927000 (C:\Windows\syswow64\SHLWAPI.dll)
GDI32.dll A: 0x76210000 - 0x762A0000 (C:\Windows\syswow64\GDI32.dll)
USER32.dll A: 0x767D0000 - 0x768D0000 (C:\Windows\syswow64\USER32.dll)
ADVAPI32.dll A: 0x758A0000 - 0x75940000 (C:\Windows\syswow64\ADVAPI32.dll)
sechost.dll A: 0x75880000 - 0x75899000 (C:\Windows\SysWOW64\sechost.dll)
RPCRT4.dll A: 0x76470000 - 0x76560000 (C:\Windows\syswow64\RPCRT4.dll)
SspiCli.dll A: 0x74870000 - 0x748D0000 (C:\Windows\syswow64\SspiCli.dll)
CRYPTBASE.dll A: 0x74860000 - 0x7486C000 (C:\Windows\syswow64\CRYPTBASE.dll)
LPK.dll A: 0x75860000 - 0x7586A000 (C:\Windows\syswow64\LPK.dll)
USP10.dll A: 0x75CB0000 - 0x75D4D000 (C:\Windows\syswow64\USP10.dll)
WSOCK32.dll A: 0x72730000 - 0x72737000 (C:\Windows\system32\WSOCK32.dll)
WS2_32.dll A: 0x76010000 - 0x76045000 (C:\Windows\syswow64\WS2_32.dll)
NSI.dll A: 0x76460000 - 0x76466000 (C:\Windows\syswow64\NSI.dll)
WINMM.dll A: 0x6FF50000 - 0x6FF82000 (C:\Windows\system32\WINMM.dll)
IMM32.DLL A: 0x76400000 - 0x76460000 (C:\Windows\system32\IMM32.DLL)
MSCTF.dll A: 0x75700000 - 0x757CC000 (C:\Windows\syswow64\MSCTF.dll)
streamer.dll A: 0x6B2F0000 - 0x6B334000 (C:\Users\Odin\Desktop\SAMP Server\plugins\streamer.dll)
MSVCP120.dll A: 0x6B270000 - 0x6B2E1000 (C:\Windows\system32\MSVCP120.dll)
MSVCR120.dll A: 0x55980000 - 0x55A6E000 (C:\Windows\system32\MSVCR120.dll)
mswsock.dll A: 0x6F700000 - 0x6F73C000 (C:\Windows\system32\mswsock.dll)
wshtcpip.dll A: 0x6F890000 - 0x6F895000 (C:\Windows\System32\wshtcpip.dll)
NLAapi.dll A: 0x6A4E0000 - 0x6A4F0000 (C:\Windows\system32\NLAapi.dll)
napinsp.dll A: 0x6A490000 - 0x6A4A0000 (C:\Windows\system32\napinsp.dll)
pnrpnsp.dll A: 0x6A290000 - 0x6A2A2000 (C:\Windows\system32\pnrpnsp.dll)
DNSAPI.dll A: 0x723A0000 - 0x723E4000 (C:\Windows\system32\DNSAPI.dll)
winrnr.dll A: 0x6A210000 - 0x6A218000 (C:\Windows\System32\winrnr.dll)
IPHLPAPI.DLL A: 0x71DF0000 - 0x71E0C000 (C:\Windows\system32\IPHLPAPI.DLL)
WINNSI.DLL A: 0x71DE0000 - 0x71DE7000 (C:\Windows\system32\WINNSI.DLL)
rasadhlp.dll A: 0x69FA0000 - 0x69FA6000 (C:\Windows\system32\rasadhlp.dll)
Alles anzeigen