OK I Understand but 2 problems.
1.
2.
pawn Код:
if(strcmp(cmd, "/emailc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLaptop] == 1)
{
if(PlayerInfo[playerid][pAccountMail] == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /emailc [accountname] [password]");
return 1;
}
new getaccountname = strval(tmp);
if(getaccountname != PlayerInfo[playerid][pAccountMailName]) { SendClientMessage(playerid, COLOR_GRAD2, " Incorrect Account Name."); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /emailc [accountname] [password]");
return 1;
}
new getpassword = strval(tmp);
if(getpassword != PlayerInfo[playerid][pAccountMailPass]) { SendClientMessage(playerid, COLOR_GRAD2, " Incorrect Password."); return 1; }
SendClientMessage(playerid, COLOR_YELLOW, "Connection to your account is now started...");
SetTimerEx("EmailConnect", 5000, false, "i", playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You don't have an E-mail Account.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You don't have a laptop.");
return 1;
}
}//not connected
return 1;
}