Quote:
Originally Posted by kamzaf
heres your error, dont put else {, check the password again with strcmp and then proceed with the login.
pawn Код:
else { SendClientMessage(playerid, COLOR_LIME, ""); SendClientMessage(playerid, COLOR_LIME, ""); SendClientMessage(playerid, COLOR_LIME, ""); format(PlayerInfo[playerid][pIP], 16, "%s", dini_Get(file, "IP")); GetPlayerIp(playerid, IP, sizeof(IP)); dini_Set(file, "IP", IP); PlayerInfo[playerid][pGender] = dini_Int(file, "Gender"); PlayerInfo[playerid][pAge] = dini_Int(file, "Age"); if(!PlayerInfo[playerid][pGender] || !PlayerInfo[playerid][pAge]) { ShowDialog(playerid, 3); } else { LoadChar(playerid); SpawnPlayer(playerid); } }
|
Can you give me the SSCANF code for checking if the password is correct?