SA-MP Forums Archive
Trunk won't open. - 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: Trunk won't open. (/showthread.php?tid=328696)



Trunk won't open. - The__ - 25.03.2012

Hello, I'm using a normal /trunk command of a gf edit, I added "open" & "close", and the trunk doesn't open, and it can check the trunk without opening it, here's all codes.
http://pastebin.com/Cvy6MLUh


Re: Trunk won't open. - Vince - 25.03.2012

I am riddled as to why you're using foreach if you're not using its variable. I won't bother examining it further, because the indentation is messed up.


Re: Trunk won't open. - The__ - 25.03.2012

Would you mind helping me resolve that ?


Re: Trunk won't open. - Daddy Yankee - 26.03.2012

Aren't the vars like SetPVarInt(playerid, "Trunk", 1); suposed to be something like SetPVarInt(veh, "Trunk", 1); ?


Re: Trunk won't open. - The__ - 26.03.2012

I've fixed it already with the PVar's, yes.


Re: Trunk won't open. - MP2 - 26.03.2012

Quote:
Originally Posted by Daddy Yankee
Посмотреть сообщение
Aren't the vars like SetPVarInt(playerid, "Trunk", 1); suposed to be something like SetPVarInt(veh, "Trunk", 1); ?
No, vehicle IDs aren't playerids. PVars are per-player, not vehicle.