Problems on installing Stereo
#1

I recently found that my custom car modding system(not the one in transfender) are unable to add stereo(aka Bass Boost) to the vehicles.

Here's my code:
pawn Код:
if(GetPlayerMoney(playerid) >= 500)
{
    new Float:px,Float:py,Float:pz,vid;
    GetPlayerPos(playerid,px,py,pz);
    PlayerPlaySound(playerid,1133,px,py,pz);
    AddVehicleComponent((vid = GetPlayerVehicleID(playerid)),1086);
    AddVehicleComponent(vid,1086);//I tried to fix that by adding it twice but still failed
    SendClientMessage(playerid,COLOR_SGREEN,"Stereo installed successfully.");
    GivePlayerMoneyEx(playerid,-500);
}
The message was showed and $500 is reduced, so I think the AddVehicleComponent function works.
I tried to add the component twice instead of once but everything are the same.

The component ID should be correct that I've searched for that in SA-MP Wiki.

Any idea for thatThanks.
Reply


Messages In This Thread
Problems on installing Stereo - by leong124 - 06.03.2011, 03:10
Re: Problems on installing Stereo - by Patrik356b - 17.08.2012, 11:41

Forum Jump:


Users browsing this thread: 1 Guest(s)