i cant fix my enter and exit command..
#2

Extra opened bracket. Indenting your code properly so it'll be readable would be easier way to figure it out.

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

Reply


Messages In This Thread
i cant fix my enter and exit command.. - by IndependentGaming - 05.05.2015, 17:45
Re: i cant fix my enter and exit command.. - by Konstantinos - 05.05.2015, 17:51

Forum Jump:


Users browsing this thread: 2 Guest(s)