if(AccInfo[playerid][WrongPass] = dini_Int(file,"WrongPass") == 3);
{
SendClientMessage(playerid,0xAA3333AA,"Wrong password 3/3");
Kick(playerid);
}
C:\Documents and Settings\Administrator\Desktop\server\gamemodes\Untitled.pwn(389) : warning 211: possibly unintended assignment C:\Documents and Settings\Administrator\Desktop\server\gamemodes\Untitled.pwn(389) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(response == 1) // Login Dialog
{
if(!strlen(inputtext))
{
format(str, sizeof(str), "Welcome back %s!Please type in the correct password!\nEnjoy", name);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login",str,"Login","Cancel");
AccInfo[playerid][WrongPass]++;
return SendClientMessage(playerid,0xAA3333AA,"[System]:Please enter the password!");
}
if(strcmp(inputtext,dini_Get(file,"Password")) == 0)
{
AccInfo[playerid][AdminLevel] = dini_Int(file,"AdminLevel");
AccInfo[playerid][WrongPass] = dini_Int(file,"WrongPass");
PlayerInfo[playerid][Kills] = dini_Int(file,"Kills");
PlayerInfo[playerid][Deaths] = dini_Int(file,"Deaths");
GivePlayerMoney(playerid,dini_Int(file,"Money"));
SetPlayerScore(playerid,dini_Int(file,"Score"));
AccInfo[playerid][LoggedIn] = 1; //player is logged in now
SendClientMessage(playerid,0x33AA33AA,"[System]:You have been sucessfully logged in.");
}
if(strcmp(inputtext,dini_Get(file,"Password")))
{
format(str, sizeof(str), "Welcome back %s!Please type in the correct password!\nEnjoy", name);
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login",str,"Login","Cancel");
SendClientMessage(playerid,0xAA3333AA,"[System]:You typed wrong password,please enter the correct password!");
}
if(AccInfo[playerid][WrongPass] = dini_Int(file,"WrongPass") == 3);------------------------------>here
{
SendClientMessage(playerid,0xAA3333AA,"Wrong password 3/3");
Kick(playerid);
}
if(response == 0)
{
Kick(playerid);
printf("*Player >%s< was kicked by system,Reason:Pressing cancel while logging in account.",name);
}
}
if(AccInfo[playerid][WrongPass] == 3);
{
SendClientMessage(playerid,0xAA3333AA,"Wrong password 3/3");
Kick(playerid);
}
|
Originally Posted by Hiddos
pawn Код:
|
C:\Documents and Settings\Administrator\Desktop\server\gamemodes\Untitled.pwn(389) : error 036: empty statement Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
if(AccInfo[playerid][WrongPass] == 3)