if(dialogid == 2) // Login Dialog
{
TogglePlayerControllable(playerid, 0);
new name[24], file[128];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"/KA/Users/%s.ini",name);
if(response == 1)
{
if(dini_Int(file, "Password") == udb_hash(inputtext))
{
SetPlayerMoney(playerid, dini_Int(file, "Cash"));
PlayerInfo[playerid][pALevel] = dini_Int(file, "AdminLevel");
SendClientMessage(playerid, 0x00ff41ff, "[System]: You successfuly loged in!");
return 1;
}
else
{
SendClientMessage(playerid, 0xff7000ff, "[System]: You entered wrong password!");
Kick(playerid);
return 1;
}
}
}
if(dialogid == 2) // Login Dialog
{
TogglePlayerControllable(playerid, 0);
new name[24], file[128];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"/KA/Users/%s.ini",name);
if(response == 1)
{
if(!strcmp(dini_Int(file, "Password"),udb_hash(inputtext),false) && strlen(inputtext))
{
SetPlayerMoney(playerid, dini_Int(file, "Cash"));
PlayerInfo[playerid][pALevel] = dini_Int(file, "AdminLevel");
SendClientMessage(playerid, 0x00ff41ff, "[System]: You successfuly loged in!");
return 1;
}
else
{
SendClientMessage(playerid, 0xff7000ff, "[System]: You entered wrong password!");
Kick(playerid);
return 1;
}
}
}
|
Originally Posted by wafffllesss
try this:
pawn Код:
|
C:\Documents and Settings\samp\Desktop\Server 2\gamemodes\Roleplay.pwn(121) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(!strcmp(dini_Int(file, "Password"),udb_hash(inputtext),false) && strlen(inputtext))
|
Originally Posted by Lajko1
Код:
if(!(strcmp(dini_Int(file, "Password"),udb_hash(inputtext),false) && strlen(inputtext))) |
|
Код:
C:\Documents and Settings\samp\Desktop\Server 2\gamemodes\Roleplay.pwn(121) : error 035: argument type mismatch (argument 1) |
|
Originally Posted by rabit7
Quote:
|