06.10.2013, 01:30
I need a script that check the information contained in the row Bolo, I had one but it did not work.
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 = '",vehicleid,"'");
mysql_function_query(MYSQLConnection, query, false, "noReturnQuery", "d", playerid);
format(string, sizeof(string), "Bolo: %s", query);
SendClientMessage(playerid, COLOR_GREY, query);
return 1;
}