SA-MP Forums Archive
what wrong with it? (OnVehicleDamageStatusUpdate) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: what wrong with it? (OnVehicleDamageStatusUpdate) (/showthread.php?tid=612280)



what wrong with it? (OnVehicleDamageStatusUpdate) - orel56000 - 16.07.2016

public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
new rand = random(3);
if(rand == 1)PlayerPlaySound(playerid,100015);
if(rand == 2)PlayerPlaySound(playerid,100010);
if(rand == 0)PlayerPlaySound(playerid,100005);
return 1;
}

so? why it dont working? help plz


Re: what wrong with it? (OnVehicleDamageStatusUpdate) - JXF - 16.07.2016

Код:
PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
you didn't put all the parameters in

PlayerPlaySound


Re: what wrong with it? (OnVehicleDamageStatusUpdate) - orel56000 - 16.07.2016

Quote:
Originally Posted by JXF
Посмотреть сообщение
Код:
PlayerPlaySound(playerid, soundid, Float:x, Float:y, Float:z);
you didn't put all the parameters in

PlayerPlaySound
the same, and i added a print to this public and its not working also, the public not working....