Interior 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: Interior Problem (
/showthread.php?tid=637166)
Interior Problem -
Barnwell - 10.07.2017
Can anyone help me
I made a /enter command for a storage
but I don't know when I /enter the storage interior I can't enter with a car I don't know why
anyone can help?
Re: Interior Problem -
Alex_T - 10.07.2017
https://sampwiki.blast.hk/wiki/SetVehiclePos
Check this out, replace SetPlayerPos with this to tp a vehicle
If you need to tp a person into the spot when they are not in a car you would want to use something like this.
Code:
if(IsPlayerInAnyVehicle(playerid) {
SetVehiclePos(X, Y, Z);
} else {
SetPlayerPos(playerid, X, Y, Z);
}
Re: Interior Problem -
Barnwell - 10.07.2017
Thanks but I need the both of it
Like everyone can enter the storage with a car or without a car.
Re: Interior Problem -
Alex_T - 10.07.2017
I edited my post check it out.
Re: Interior Problem -
Barnwell - 10.07.2017
wcrp\interiors.pwn(172) : error 001: expected token: ")", but found "{"
pawn Code:
if(IsPlayerInAnyVehicle(playerid) {
SetVehiclePos(X, Y, Z);
} else {
SetPlayerPos(playerid, X, Y, Z);
}
Re: Interior Problem -
DTV - 10.07.2017
Needs to be
Code:
if(IsPlayerInAnyVehicle(playerid))
.
Re: Interior Problem -
Barnwell - 10.07.2017
This restart my server
btw I fix it