Sql Lite + sscanf Getting errors.
#1

pawn Код:
CMD:createshopcar(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new shopid,modelid,cost;
    if (sscanf(params, "iii", shopid,modelid,cost)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/createshopcar <Shop Id | Vehicle Model Id | Cost>\"");
    if (!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, 0xFF0000AA, "You aren't in any car!");
        else
        {
        new
        Query[ 150 ],
        DBResult: Result;
        format(Query, sizeof(Query), "SELECT * FROM `SHOPS` WHERE `ID` = '%i'", DB_Escape(shopid)); // line 40
        Result = db_query(database, Query);
        }
    return 1;
}
errors:
Код:
new.pwn(40) : error 035: argument type mismatch (argument 1)
Thanks for help

line 40 is format line.

all has been set perfectly, this just don't work.
Reply


Messages In This Thread
Sql Lite + sscanf Getting errors. - by [WSF]ThA_Devil - 13.01.2012, 18:04
Re: Sql Lite + sscanf Getting errors. - by Jefff - 13.01.2012, 18:07
Re: Sql Lite + sscanf Getting errors. - by [WSF]ThA_Devil - 13.01.2012, 18:07
Respuesta: Re: Sql Lite + sscanf Getting errors. - by OPremium - 13.01.2012, 18:10
Re: Respuesta: Re: Sql Lite + sscanf Getting errors. - by [WSF]ThA_Devil - 13.01.2012, 18:11

Forum Jump:


Users browsing this thread: 1 Guest(s)