Registration problem
#1

So I just got another computer and I lost all my gamemodes and all that. I am starting on new and I am trying to make a register system, but it doesnt work.

I followed a tutorial.


errors:
C:\GTA Server\gamemodes\testmode.pwn(279) : warning 204: symbol is assigned a value that is never used: "string"
C:\GTA Server\gamemodes\testmode.pwn(279 -- 302) : warning 217: loose indentation
C:\GTA Server\gamemodes\testmode.pwn(302) : error 029: invalid expression, assumed zero
C:\GTA Server\gamemodes\testmode.pwn(302) : error 004: function "OnPlayerClickPlayer" is not implemented
C:\GTA Server\gamemodes\testmode.pwn(307) : warning 225: unreachable code
C:\GTA Server\gamemodes\testmode.pwn(307) : error 029: invalid expression, assumed zero
C:\GTA Server\gamemodes\testmode.pwn(307) : error 004: function "OnPlayerCommandText" is not implemented
C:\GTA Server\gamemodes\testmode.pwn(311) : error 030: compound statement not closed at the end of file (started at line 259)

and here is the code:

pawn Код:
if (dialogid == 2)
    {
        new name[MAX_PLAYER_NAME], file[256], string[128];
        GetPlayerName(playerid, name, sizeof(name));
        format(file, sizeof(file), SERVER_USER_FILE, name);
        if(!response) return Kick(playerid);
        if (!strlen(inputtext)) return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "You are registered", "You are registered. Input your password below", "Login", "Leave");
        new tmp;
        tmp = dini_Int(file, "Password");
        if(udb_hash(inputtext) != tmp) {
            SendClientMessage(playerid, 0xFFFFFFFF, "Wrong passord. Please re-enter");
            ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "You are registered", "You are registered. Input your password below", "Login", "Leave");
        }
        else
        {
            gPlayerLogged[playerid] = 1;
            PlayerInfo[playerid][pAdminLevel] = dini_Int(file, "AdminLevel");
            SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
            GivePlayerMoney(playerid, dini_Int(file, "Money")-GetPlayerMoney(playerid));
            SendClientMessage(playerid,0xFFFFFFFF, "You have successfully logged in!");
        }
        return 1;
    }

Thanks
Reply


Messages In This Thread
Registration problem - by Dolph - 12.11.2010, 10:44
Re: Registration problem - by HrvojeCro - 12.11.2010, 10:48
Re: Registration problem - by iJumbo - 12.11.2010, 10:49
Re: Registration problem - by Cameltoe - 12.11.2010, 10:50
Re: Registration problem - by Dolph - 12.11.2010, 10:58
Re: Registration problem - by iJumbo - 12.11.2010, 10:59
Re: Registration problem - by Cameltoe - 12.11.2010, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)