pawn Код:
forward getID(playerid); // Topo
/* Seu Comando de Checar ID */
new idVeh = GetPlayerVehicleID(playerid), queryMySQL[70];
GetVehicle(idVeh, ColorOne, ColorTwo);
format(queryMySQL, 70, "SELECT * FROM vehicles WHERE id='%i'", Vehicleinfo[id]);
mysql_function_query(Conexao, queryMySQL, true, "getID", "i", playerid);
/* Callback de Checar ID */
public getID(playerid) {
new Rows, Field;
cache_get_data(Rows, Field, Conexao);
if(Row > 0) {
new idVeh, res[30], string[10];
cache_get_field_content(0, "id", res, Conexao), idVeh = strval(str);
format(string, 10, "ID: %i");
SendClientMessage(playerid, 1, string);
}
return true;
}
Nгo testei, caso tenha algum erro no compilador poste aqui.