SA-MP Forums Archive
IsVehicleStreamedIn wrong syntax in pawno. - 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: IsVehicleStreamedIn wrong syntax in pawno. (/showthread.php?tid=418853)



IsVehicleStreamedIn wrong syntax in pawno. - 1dllb - 26.02.2013

If you write
Code:
IsVehicleStreamedIn(
pawno will suggest you to use this syntax.
Code:
IsVehicleStreamedIn(vehicleid)
but it should be
Code:
IsVehicleStreamedIn(vehicleid, forplayerid)



Re: IsVehicleStreamedIn wrong syntax in pawno. - beckzy - 26.02.2013

This won't get fixed. I reported the same problem with SetPlayerAmmo asking for the weaponslot instead of weaponid and it always got ignored.


Re: IsVehicleStreamedIn wrong syntax in pawno. - 1dllb - 27.02.2013

But it do show weaponslot instead of weaponid, so they have listened?
I hope they'll fix it for later. Maybe it'll help another guy from having to spent 30 mins. trying to figure out what's wrong with his code.


Re: IsVehicleStreamedIn wrong syntax in pawno. - beckzy - 27.02.2013

SetPlayerAmmo should show weaponid not weaponslot


Re: IsVehicleStreamedIn wrong syntax in pawno. - 1dllb - 27.02.2013

Oh I see.


Re: IsVehicleStreamedIn wrong syntax in pawno. - kurta999 - 27.02.2013

This is PAWNO bug, not samp.
Try to remove a_npc.inc from pawno includes and you will see the difference. (a_npc is before a_samp so PAWNO reads here I think)

Same situation with GetPlayerHealth()