Bug vehicle color
#4

pawn Код:
CMD:vcolor(playerid, vehicleid, params[])
{
    if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You are not driving a vehicle!");
    new c1, c2;
    if(sscanf(params,"dd",c1,c2)) return SendClientMessage(playerid, -1, "INFO: /vcolor [color1] [color2]");
    if(c1<0||c1>127) return SendClientMessage( playerid, -1, "Invalid id color one.") ;
    if(c2<0||c2>127) return SendClientMessage( playerid, -1, "invalid id color two.") ;
    new veh_ID = GetPlayerVehicleID(playerid);
    //new query[60];
    //format(query,sizeof(query),"UPDATE cars SET color1=%i,color2=%i WHERE id=%i",cInfo[veh_ID][c_c1],cInfo[veh_ID][c_c2],cInfo[veh_ID][db_id]);
    //mysql_function_query(dbhandle,query,false,"","");
    SendClientMessage(playerid, -1, "Ti-ai setat culorile dorite !!");
    ChangeVehicleColor(veh_ID, c1, c2);
    SaveVehicle(veh_ID);
    return 1;
}
Reply


Messages In This Thread
Bug vehicle color - by Mititel - 08.05.2014, 15:21
Re: Bug vehicle color - by Mititel - 09.05.2014, 07:23
Re : Bug vehicle color - by Sc0tt - 09.05.2014, 07:31
Re: Bug vehicle color - by Konstantinos - 09.05.2014, 08:30
Re: Bug vehicle color - by gekas - 09.05.2014, 10:50
Re: Bug vehicle color - by Konstantinos - 09.05.2014, 10:54
Re: Bug vehicle color - by Mititel - 11.05.2014, 12:47
Re: Bug vehicle color - by Mititel - 21.05.2014, 17:15
Re: Bug vehicle color - by DaniceMcHarley - 21.05.2014, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)