SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/07/2017, 02:31 AM   #1
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Smile Interior Problem

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?
Barnwell is offline   Reply With Quote
Old 10/07/2017, 02:33 AM   #2
Alex_T
Huge Clucker
 
Join Date: May 2012
Posts: 220
Reputation: 23
Default Re: Interior Problem

http://wiki.sa-mp.com/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);
}
Alex_T is offline   Reply With Quote
Old 10/07/2017, 02:35 AM   #3
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Re: Interior Problem

Thanks but I need the both of it
Like everyone can enter the storage with a car or without a car.
Barnwell is offline   Reply With Quote
Old 10/07/2017, 02:36 AM   #4
Alex_T
Huge Clucker
 
Join Date: May 2012
Posts: 220
Reputation: 23
Default Re: Interior Problem

I edited my post check it out.
Alex_T is offline   Reply With Quote
Old 10/07/2017, 02:43 AM   #5
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Re: Interior Problem

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);
    }
Barnwell is offline   Reply With Quote
Old 10/07/2017, 02:44 AM   #6
DTV
Banned
 
Join Date: Dec 2010
Posts: 547
Reputation: 125
Default Re: Interior Problem

Needs to be
Code:
if(IsPlayerInAnyVehicle(playerid))
.
DTV is offline   Reply With Quote
Old 10/07/2017, 03:28 AM   #7
Barnwell
Banned
 
Join Date: May 2014
Location: England
Posts: 549
Reputation: 40
Default Re: Interior Problem

This restart my server
btw I fix it
Barnwell is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interior Problem? Triggerz Scripting Help 3 11/02/2017 04:30 PM
interior problem pelani Scripting Help 3 11/02/2013 11:49 PM
[HELP]Interior problem Lilcuete Help Archive 2 21/12/2010 06:34 PM
Interior problem x-unit Help Archive 3 19/01/2010 11:34 AM


All times are GMT. The time now is 08:06 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.