Wrong strval
#11

Quote:
Originally Posted by Bl4ckDice
OK I Understand but 2 problems.
1.
He don't show me the Name and Password, at /email

2.
/emailc don#t Work, he say, incorrect Name

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;
    }
Reply


Messages In This Thread
Wrong strval - by Justsmile - 08.09.2009, 23:52
Re: Wrong strval - by Nero_3D - 09.09.2009, 00:00
Re: Wrong strval - by Justsmile - 09.09.2009, 10:53
Re: Wrong strval - by Zeex - 09.09.2009, 10:58
Re: Wrong strval - by Justsmile - 09.09.2009, 10:59
Re: Wrong strval - by saiberfun - 09.09.2009, 11:20
Re: Wrong strval - by Justsmile - 09.09.2009, 11:27
Re: Wrong strval - by saiberfun - 09.09.2009, 11:51
Re: Wrong strval - by Justsmile - 09.09.2009, 12:09
Re: Wrong strval - by Donny_k - 09.09.2009, 12:12
Re: Wrong strval - by Justsmile - 09.09.2009, 12:13

Forum Jump:


Users browsing this thread: 1 Guest(s)