Ai os comandos a parte do /verbolo nгo consigo arrumar ela tentei fazer de um jeito e nгo deu, mas o /bolo ta funcionando.
pawn Код:
CMD:verbolo(playerid, params[])
{
new vehicleid, values;
if(sscanf(params, "d", vehicleid)) return SendClientMessage(playerid, COLOR_GREY, "[Prйfixo]: /vercarro [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(string, sizeof(string), "Bolo: %s", vehicleinfo[vehicleid][vBolo]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
CMD:bolo(playerid, params[])
{
new vehicleid, motivo[255];
if(sscanf(params, "ds[255]", vehicleid, motivo)) return SendClientMessage(playerid, COLOR_GREY, "[Prйfixo]: /bolo [vehicleid] [motivo]");
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), "UPDATE `vehicleinfo` SET Bolo = '%s' WHERE `ID` = '%d'", motivo, vehicleid);
mysql_function_query(MYSQLConnection, query, false, "noReturnQuery", "s", playerid);
format(string, sizeof(string), "* Bolo inserido com sucesso no veiculo placa LS-%d.", vehicleid);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}