pawn Код:
CMD:checkbolo(playerid, params[])
{
new vehicleid;
if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "[CMD]: /checkbolo [vehicleid]");
if(playerinfo[playerid][pMuted] == 1) return SendClientMessage(playerid, COLOR_ERROR, MUTED_ERROR);
if(playerinfo[playerid][pLogado] == 0) return SendClientMessage(playerid, COLOR_ERROR, LOGIN_ERROR);
format(query, sizeof(query), "SELECT Bolo FROM `vehicleinfo` WHERE ID = %d",vehicleid,"'");
mysql_function_query(MYSQLConnection, query, false, "noReturnQuery", "d", playerid);
format(string, sizeof(string), "Bolo: %s", query);
SendClientMessage(playerid, COLOR_GREY, query);
return 1;
}