INI_Int problem?
#6

Right, so that's stopped the crashing.

pawn Код:
if(fexist(UserPath(playerid)))
    {
        new INI:File = INI_Open(UserPath(playerid));
        new status;
        INI_Int("Status", status);
        if(status == 2)
        {
            new string[128];
            format(string, sizeof(string), "{FF0000}Your account has been banned!{FFFFFF}\n\nBanned by:\t %s\nReason:\t %s\nBan Date:\t %s", INI_String(File, "BannedBy"), INI_String(File, "BanReason"), INI_String(File, "BanDate"));
            ShowPlayerDialog(playerid, BAN_DIALOG, DIALOG_STYLE_MSGBOX, " ", string, "OK", "");
            KickEx(playerid);
            INI_Close(ini);
        } else {
            INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
            SendClientMessage(playerid,X11_SLATEGREY, "Welcome to Valhalla's TDM Server. We hope you enjoy your stay.");
        }
        return 1;
    }
Quote:

A1.pwn(412) : error 017: undefined symbol "value"
A1.pwn(416) : error 029: invalid expression, assumed zero
A1.pwn(416) : error 035: argument type mismatch (argument 1)
A1.pwn(416) : error 001: expected token: ";", but found "return"
A1.pwn(416) : fatal error 107: too many error messages on one line

pawn Код:
INI_Int("Status", status);
pawn Код:
format(string, sizeof(string), "{FF0000}Your account has been banned!{FFFFFF}\n\nBanned by:\t %s\nReason:\t %s\nBan Date:\t %s", INI_String(File, "BannedBy"), INI_String(File, "BanReason"), INI_String(File, "BanDate"));
Reply


Messages In This Thread
INI_Int problem? - by acade - 18.07.2014, 20:17
Re: INI_Int problem? - by Stinged - 18.07.2014, 20:19
Re: INI_Int problem? - by acade - 18.07.2014, 20:23
Re: INI_Int problem? - by acade - 18.07.2014, 20:39
Re: INI_Int problem? - by acade - 18.07.2014, 20:43
Re: INI_Int problem? - by acade - 18.07.2014, 21:10
Re: INI_Int problem? - by acade - 19.07.2014, 11:20

Forum Jump:


Users browsing this thread: 1 Guest(s)