SA-MP Forums Archive
Detain Problem - 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: Detain Problem (/showthread.php?tid=438881)



---------- - K3nX - 22.05.2013

----------


---------- - K3nX - 23.05.2013

----------


Re: Detain Problem - mahdi499 - 23.05.2013

Well the code has nothing wrong,Show us LastVehicle Code Lines. it's the problem i guess


---------- - K3nX - 23.05.2013

----------


Re: Detain Problem - mahdi499 - 23.05.2013

What do you expect,ofcourse it's not going to work,the last vehicle is always 0 and you command will return null if it's 0,you can add LasVehicle under OnPlayerEnterVehicle. and set it 1


Re: Detain Problem - dannyk0ed - 23.05.2013

Quote:
Originally Posted by mahdi499
Посмотреть сообщение
What do you expect,ofcourse it's not going to work,the last vehicle is always 0 and you command will return null if it's 0,you can add LasVehicle under OnPlayerEnterVehicle. and set it 1
Should be the vehicle ID