A few issues with my scripts
#1

Код:
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
Reply
#2

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.
Reply
#3

That works, cheers, any idea about the exception or /exit not working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)