MySQL question
#1

Is the format correct or not?

pawn Код:
stock LoadVehicleFromSlot(playerid, slot)
{
    new query[500];
    format(query, sizeof(query), "SELECT * FROM `ownedvehicles` WHERE `owner` = '%s' AND `slot` = %d", GetName(playerid), slot);
    mysql_function_query(dbHandle, query, true, "OnPlayerSpawnVehicle", "ii", playerid, slot);
    return 1;
}
Reply


Messages In This Thread
MySQL question - by PaulDinam - 18.03.2013, 21:19
Re: MySQL question - by Konstantinos - 18.03.2013, 21:23
Re: MySQL question - by Djole1337 - 18.03.2013, 21:39
Re: MySQL question - by kamzaf - 18.03.2013, 22:03

Forum Jump:


Users browsing this thread: 2 Guest(s)