13.01.2012, 18:04
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;
}
Код:
new.pwn(40) : error 035: argument type mismatch (argument 1)
line 40 is format line.
all has been set perfectly, this just don't work.