03.01.2013, 19:56
Thanks for you help but i forgot one thing,
how to convert that :
My code with your help :
how to convert that :
PHP Code:
format(query, sizeof(query), "INSERT INTO `vehicles` (model, owner, colour1, colour2, price) VALUES('%d', '%s', '%d', '%d', '%d')", vehicle, pname, color1, color2, vehicleprice);
mysql_query(query);
PHP Code:
SafeGivePlayerMoney(playerid, -vehicleprice);
GetPlayerName(playerid, pname, 24);
format(query, sizeof(query), "INSERT INTO `vehicles` (model, owner, colour1, colour2, price) VALUES('%d', '%s', '%d', '%d', '%d')", vehicle, pname, color1, color2, vehicleprice);
mysql_query(query);
if(key1 == 9999) {
format(query, sizeof query, "SELECT `id` FROM `vehicles` WHERE `owner` = '%s' AND `plate` = '15640'", pname);
mysql_function_query(MUMU_MYSQL_HANDLE, query, true, "OnVehicleLoad", "d", playerid);
}