new name[24]; GetPlayerName(playerid, name, sizeof(name)); format(file,sizeof(file),\"/MS_Statics/Players/%s.ms\",name); if(!fexist(file)) { format(PW, 64, \"%s\", dini_Get(file, \"PASSWORD\")); if(!strcmp(inputtext, PW, false)) { Logined[playerid] = 1; ResetPlayerMoney(playerid); SetPlayerScore(playerid, dini_Int(file,\"SCORE\")); GivePlayerMoney(playerid, dini_Int(file,\"MONEY\")); MSStatics[playerid][Deaths] = dini_Int(file,\"DEATHS\"); MSStatics[playerid][Kills] = dini_Int(file,\"KILLS\"); MSStatics[playerid][Admin] = dini_Int(file,\"ADMIN\"); MSStatics[playerid][ALevel] = dini_Int(file,\"ADMINLEVEL\"); MSStatics[playerid][VIP] = dini_Int(file,\"VIP\"); MSStatics[playerid][VLevel] = dini_Int(file,\"VIPLEVEL\"); SCM(playerid, -1, \"{DDDDDD}>> AccServ: {FF4646} Sikeresen bejelentkeztél.\"); MSStatics[playerid][LoggedIn] = 1; TogglePlayerSpectating(playerid, 0); } } else { format(string, sizeof string, \"\\n{FF0000}Kickelve lettél a szerverrõl!\\n\\n{DDDDDD}Próbált jelszó: {FF4646}%s\\n\\n{DDDDDD}- Ha úgygondolod, hogy elfelejtetted a jelszavad akkor keress fel egy {fcc922}admint {DDDDDD}vagy menj fel ide {fcc922}www.modernstunting.tk/triedpass/\", inputtext); ShowPlayerDialog(playerid, INCPASS, DIALOG_STYLE_MSGBOX, \"{FF4646}* FIGYELMEZTETÉS\", string, \"OK\", \"\"); GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); printf(\"[incorrect password] %s forgot the password, tried password (%s)\", name, inputtext); Kick(playerid); }
if(!strcmp(inputtext, PW, false))
if(!strcmp(inputtext, PW, false))False helyett true [/quote]a true, vagy false azt jelenti, hogy kis-és nagybetûket érzékelje-e, avagy sem.írd át ugy, h ahol eddig a hibát írta, ott legyen a belépés..vagy !if(strcmp(inputtext, PW, false) == 0)
!if(strcmp(inputtext, PW, false) == 0)
new name[24];GetPlayerName(playerid, name, sizeof(name));format(file,sizeof(file),\"/MS_Statics/Players/%s.ms\",name);if(fexist(file)){format(PW, 64, \"%s\", dini_Get(file, \"PASSWORD\"));if(!strcmp(inputtext, PW, false)){Logined[playerid] = 1;ResetPlayerMoney(playerid);SetPlayerScore(playerid, dini_Int(file,\"SCORE\"));GivePlayerMoney(playerid, dini_Int(file,\"MONEY\"));MSStatics[playerid][Deaths] = dini_Int(file,\"DEATHS\");MSStatics[playerid][Kills] = dini_Int(file,\"KILLS\");MSStatics[playerid][Admin] = dini_Int(file,\"ADMIN\");MSStatics[playerid][ALevel] = dini_Int(file,\"ADMINLEVEL\");MSStatics[playerid][VIP] = dini_Int(file,\"VIP\");MSStatics[playerid][VLevel] = dini_Int(file,\"VIPLEVEL\");SCM(playerid, -1, \"{DDDDDD}>> AccServ: {FF4646} Sikeresen bejelentkeztél.\");MSStatics[playerid][LoggedIn] = 1;TogglePlayerSpectating(playerid, 0);}else{ format(string, sizeof string, \"\\n{FF0000}Kickelve lettél a szerverrõl!\\n\\n{DDDDDD}Próbált jelszó: {FF4646}%s\\n\\n{DDDDDD}- Ha úgygondolod, hogy elfelejtetted a jelszavad akkor keress fel egy {fcc922}admint {DDDDDD}vagy menj fel ide {fcc922}www.modernstunting.tk/triedpass/\", inputtext);ShowPlayerDialog(playerid, INCPASS, DIALOG_STYLE_MSGBOX, \"{FF4646}* FIGYELMEZTETÉS\", string, \"OK\", \"\");GetPlayerName(playerid, PlayerName, sizeof(PlayerName));printf(\"[incorrect password] %s forgot the password, tried password (%s)\", name, inputtext);Kick(playerid);}}