Moddshop + Removecomponent - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP (
https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: Bug Reports (
https://sampforum.blast.hk/forumdisplay.php?fid=20)
+--- Thread: Moddshop + Removecomponent (
/showthread.php?tid=189733)
Moddshop + Removecomponent -
GaGlets(R) - 13.11.2010
So i wanted to remake my vehicle mod saving system, i decided to uses callback OnVehicleMod.
I wanted to remove a vehicle component - nitrous - if player buys it but for no reason it wont take it off, already checked everything should work fine - i added A Client message after that function, message shows up but component wont be taken off. .
Is it a bug or it should be like that?
example script.
pawn Code:
switch(componentid)
{
case 1008,1009,1010: // nitro
{
SendClientMessage(playerid,COLOR_GREY,"* Sorry, not allowed.");
RemoveVehicleComponent(vehicleid,componentid);
}
}
Ofcourse as i wrote, message shows but component wont be taken off.
Re: Moddshop + Removecomponent -
Jay_ - 13.11.2010
Perhaps the callback is called prior to the mod actually being applied. Try removing the component a second or so later.
Re: Moddshop + Removecomponent -
GaGlets(R) - 13.11.2010
Quote:
Originally Posted by Jay_
Perhaps the callback is called prior to the mod actually being applied. Try removing the component a second or so later.
|
Sorry man, i dont need help with that, just reporting, if its not bug then deny it ... .