This is strange
#1

I hope i explain this good.

When i edit my dynamic door to custom interior so you get freeze time
and you use /enter it enter the door but it exit the door automatically

but when i edit the dynamic door to custom exterior and i use /exit by the interior position it is working.

did i do something wrong ?

See /enter command:

PHP код:
CMD:enter(playerid,params[])
{
    for(new 
0sizeof(DoorInfo); i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ])) {
            
SetPlayerPos(playeridDoorInfo[i][dExitX],DoorInfo[i][dExitY],DoorInfo[i][dExitZ]);
            
SetPlayerInterior(playeridDoorInfo[i][dExitInt]); SetPlayerVirtualWorld(playeridDoorInfo[i][dExitVW]);
        }
        if(
DoorInfo[i][ddCustomInterior])
        {
            
Player_StreamPrep(playeridDoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ], FREEZE_TIME);
        }
    }
    return 
1;

Reply
#2

Hello!

Try this:
PHP код:
CMD:enter(playerid,params[])
{
    for(new 
i;i<sizeof DoorInfo;i++)
    {
        if(
IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ]))
        {
            
SetPlayerPos(playerid,DoorInfo[i][dExitX],DoorInfo[i][dExitY],DoorInfo[i][dExitZ]);
            
SetPlayerInterior(playerid,DoorInfo[i][dExitInt]);
            
SetPlayerVirtualWorld(playerid,DoorInfo[i][dExitVW]);
            break;
        }
        if(
DoorInfo[i][ddCustomInterior])
        {
            
PlayerStreamPrep(playerid,DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ],FREEZE_TIME);
        }
    }
    return 
1;

Reply
#3

PHP код:
(406) : error 017undefined symbol "PlayerStreamPrep"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


1 Error

Reply
#4

PHP код:
PlayerStreamPrep 
to
PHP код:
Player_StreamPrep 
Sorry for the mistake.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)