[help] Please
#1

[ame]http://www.youtube.com/watch?v=jmeZYH6YISQ&feature=channel_video_title[/ame]

How can i make it with i still stay in the car after i /exit
Reply
#2

Hmm , can you show your code ? of /exit
Reply
#3

else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218) //Vipgarage
{
new pvid = GetPlayerVehicleID(playerid);
SetVehicleVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1825.6198730469,-1538.2703857422,12.796875);
SetVehiclePos(pvid, 1825.6198730469,-1538.2703857422,12.796875);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerFacingAngle(playerid, 125.0000);
SetCameraBehindPlayer(playerid);
}
Reply
#4

Quote:
Originally Posted by decastro96
Посмотреть сообщение
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218) //Vipgarage
{
new pvid = GetPlayerVehicleID(playerid);
SetVehicleVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1825.6198730469,-1538.2703857422,12.796875);
SetVehiclePos(pvid, 1825.6198730469,-1538.2703857422,12.796875);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerFacingAngle(playerid, 125.0000);
SetCameraBehindPlayer(playerid);
}
Try:

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218) //Vipgarage
{
new pvid = GetPlayerVehicleID(playerid);
SetVehicleVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1825.6198730469,-1538.2703857422,12.796875);
SetVehiclePos(pvid, 1825.6198730469,-1538.2703857422,12.796875);
SetPlayerVirtualWorld(playerid,0);
PutPlayerInVehicle(playerid,pvid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerFacingAngle(playerid, 125.0000);
SetCameraBehindPlayer(playerid);
}
Reply
#5

EDIT: This should work I think.

Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218) //Vipgarage
{
new pvid = GetPlayerVehicleID(playerid);
SetVehicleVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetVehiclePos(pvid, 1825.6198730469,-1538.2703857422,12.796875);
SetPlayerVirtualWorld(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
Reply
#6

C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ",", but found "-integer value-"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ";", but found ")"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 029: invalid expression, assumed zero
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : fatal error 107: too many error messages on one line
Reply
#7

Quote:
Originally Posted by decastro96
Посмотреть сообщение
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ",", but found "-integer value-"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ";", but found ")"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 029: invalid expression, assumed zero
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : fatal error 107: too many error messages on one line
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218))   //Vipgarage
{
new pvid = GetPlayerVehicleID(playerid);
SetVehicleVirtualWorld(playerid,0);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1825.6198730469,-1538.2703857422,12.796875);
SetVehiclePos(pvid, 1825.6198730469,-1538.2703857422,12.796875);
SetPlayerVirtualWorld(playerid,0);
PutPlayerInVehicle(playerid,pvid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerFacingAngle(playerid, 125.0000);
SetCameraBehindPlayer(playerid);
}
pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218))   //Vipgarage
You missed a "(" on the end of that line , it has two and not one.
Reply
#8

Added a ")" to this line

pawn Код:
else if(IsPlayerInRangeOfPoint(playerid,3.0,2359.563232 4219,-1440.3643798828,801.3366699218))
@Jay That code is setting the player's angle while the player is in the vehicle.
Reply
#9

C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ",", but found "-integer value-"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : warning 215: expression has no effect
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 001: expected token: ";", but found ")"
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : error 029: invalid expression, assumed zero
C:\Users\extro\Desktop\The Social World\gamemodes\TheSocialWorld.pwn(23252) : fatal error 107: too many error messages on one line
Reply
#10

EDIT: Nevermind. Please remove
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)