A few issues with my scripts - 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: A few issues with my scripts (
/showthread.php?tid=275896)
A few issues with my scripts -
Rabbayazza - 11.08.2011
Код:
COMMAND:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
SetPlayerInterior(playerid, 10);
return 1;
}
COMMAND:exit(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.2732, 112.0255, 1003.2188))
{
SetPlayerPos(playerid, 290.7193, -1618.0544, 33.1547);
SetPlayerInterior(playerid, 0);
}
return 1;
}
If you do /enter and are not at that point (I'm adding multiple points when all issues are fixed), it teleports you.
/exit just doesn't work at all.
I get a warning s007 0xC0000005 error or something like that when spawning at a certain spawn.
If you drive a car somewhere, and leave it, after a few seconds it goes back to original spawn... help
Re: A few issues with my scripts -
freshOrange - 11.08.2011
pawn Код:
COMMAND:enter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 290.7193,-1618.0544,33.1547))
{
SetPlayerPos(playerid, 246.2732,112.0255,1003.2188);
SetPlayerInterior(playerid, 10);
}
return 1;
}
Try this.
Re: A few issues with my scripts -
Rabbayazza - 11.08.2011
That works, cheers, any idea about the exception or /exit not working