MySql Prob.
#7

pawn Код:
public CheckAccount(playerid, account[])
{
    new rows, field;
    cache_get_data(rows, field); // 362
    #undef field // 363
    if(rows) // 364
    {
        ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Welcome back","Welcome back to Contract Wars!\n\nType in your password below to login","Login","Leave");
        accountExists[playerid] = true;
    }
    else
    {
        ShowPlayerDialog(playerid, REGISTER, DIALOG_STYLE_PASSWORD, "New account","Please input your password below to register a account","Register","Leave");
        accountExists[playerid] = false;
    }
    return 1;
}

public CheckAccountEx(account[])
{
    new rows, field;
    cache_get_data(rows, field);
    #undef field
    if(rows)
        QueryState = true;
    else
        QueryState = false;
    return QueryState;
}
Errors:
pawn Код:
DDM.pwn(362) : error 017: undefined symbol "cache_get_data"
DDM.pwn(363) : error 017: undefined symbol "field"
DDM.pwn(363) : error 029: invalid expression, assumed zero
DDM.pwn(363 -- 364) : warning 215: expression has no effect
DDM.pwn(364) : error 001: expected token: ";", but found "if"
DDM.pwn(364) : fatal error 107: too many error messages on one lin
Tried cache_get_row_count instead of cache_get_data but got more errors
Reply


Messages In This Thread
MySql Prob. - by newbie scripter - 17.04.2014, 13:01
Re: MySql Prob. - by newbie scripter - 18.04.2014, 05:27
Re: MySql Prob. - by Conradus - 18.04.2014, 06:55
Re: MySql Prob. - by iZN - 18.04.2014, 07:10
Re: MySql Prob. - by newbie scripter - 18.04.2014, 08:09
Re: MySql Prob. - by iZN - 18.04.2014, 10:21
Re: MySql Prob. - by newbie scripter - 21.04.2014, 10:32
Re: MySql Prob. - by RajatPawar - 21.04.2014, 10:35
Re: MySql Prob. - by newbie scripter - 21.04.2014, 10:39
Re: MySql Prob. - by newbie scripter - 22.04.2014, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)