pinlogin
#5

error 033: array must be indexed (variable "tmp")
pawn Код:
if (strcmp(cmd, "/pinlogin", true) ==0 )
    {
        if(IsPlayerConnected(playerid))
        {
            new tmppass[64];
            if(Loggedpin[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_WHITE, "You are already logged in your bank account.");
                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD5, "USAGE: /pinlogin [PINCODE]");
                return 1;
            }
            if(tmp == PlayerInfo[playerid][pCode])
            {
                Loggedpin[playerid] = 1;
                SendClientMessage(playerid, COLOR_GRAD5, "You have logged in !");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD5, "Wrong PIN !");
                return 1;
            }
        }
        return 1;
    }
Reply


Messages In This Thread
pinlogin - by razvanel - 21.12.2010, 17:45
Re: pinlogin - by akis_tze - 21.12.2010, 17:52
Re: pinlogin - by razvanel - 21.12.2010, 17:54
Re: pinlogin - by akis_tze - 21.12.2010, 17:58
Re: pinlogin - by razvanel - 21.12.2010, 19:04
Re: pinlogin - by Larsey123IsMe - 21.12.2010, 20:11
Re: pinlogin - by silver9600 - 21.12.2010, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)