12.01.2014, 02:25
Bom eu queria saber como que eu pego o id na tabela dos veiculos no mysql mais eu nгo consigo de jeito nenhum 


IMAGES:

CODE:



IMAGES:

CODE:
pawn Код:
new vehicleid = GetPlayerVehicleID(playerid);
GetVehicleColor(vehicleid, ColorOne, ColorTwo);
format(Query, sizeof(Query), "SELECT * FROM vehicles WHERE id='%i'",VehicleInfo[id]); // Formats the query for "mysql_query"
mysql_query(mysql,Query); // Querys the "Query" Variable.
mysql_store_result(); // Stores the result from Query
while(mysql_fetch_row_format(Query,"|"))
{
sscanf(Query, "p<|>e<is[25]iiffffiii>", VehicleInfo[id]); // Pretty neat ehh? [ ID, OWNER, MODEL, PRICE, POS X, POS Y, POS Z, POS A ]
}