09.04.2017, 18:49
What is the problem ? I got invalid expression and assumed zero
Код:
if( response ) { new string1[30]; if(udb_hash(inputtext) == PlayerInfo[playerid][PASSWORD]) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); GivePlayerMoney(playerid, PlayerInfo[playerid][MONEY]); } else { DeletePVar(playerid, "FailedLoginAttempt"); ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Login", string1, "Login", "Cancel"); } else //HERE-------------- { if(GetPVarInt(playerid, "FailedLoginAttempt") == 0) { SetPVarInt(playerid, "FailedLoginAttempt", 1); SendClientMessage(playerid, -1, "SERVER: asdasdsad."); } else if(GetPVarInt(playerid, "FailedLoginAttempt") == 1) { SetPVarInt(playerid, "FailedLoginAttempt", 2); SendClientMessage(playerid, -1, "SERVER: sadsad."); } else if(GetPVarInt(playerid, "FailedLoginAttempt") == 2) { SetPVarInt(playerid, "FailedLoginAttempt", 3); SendClientMessage(playerid, -1, "SERVER: asdsad."); } else if(GetPVarInt(playerid, "FailedLoginAttempt") == 3) { DeletePVar(playerid, "FailedLoginAttempt"); SendClientMessage(playerid, -1, "SERVER: asdasd."); Kick(playerid); } ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Login", string1, "Login", "Cancel"); } } } } return 1; }