SA-MP Forums Archive
[help] Please - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help] Please (/showthread.php?tid=265606)



[help] Please - decastro96 - 01.07.2011

[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


Re: [help] Please - Jay. - 01.07.2011

Hmm , can you show your code ? of /exit


Re: [help] Please - decastro96 - 01.07.2011

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);
}


Re: [help] Please - Jay. - 01.07.2011

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);
}



Re: [help] Please - PotH3Ad - 01.07.2011

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;
}



Re: [help] Please - decastro96 - 01.07.2011

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


Re: [help] Please - Jay. - 01.07.2011

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.



Re: [help] Please - PotH3Ad - 01.07.2011

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.


Re: [help] Please - decastro96 - 01.07.2011

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


Re: [help] Please - Jay. - 01.07.2011

EDIT: Nevermind. Please remove