05.05.2015, 17:51
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 i = 0; i < sizeof(DoorInfo); i++)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,DoorInfo[i][dExitX],DoorInfo[i][dExitY],DoorInfo[i][dExitZ]))
{
SetPlayerPos(playerid, DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ]);
SetPlayerInterior(playerid, DoorInfo[i][dEnterInt]); SetPlayerVirtualWorld(playerid, DoorInfo[i][dEnterVW]);
}
if(DoorInfo[i][ddCustomInterior])
{
Player_StreamPrep(playerid, DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ], FREEZE_TIME);
}
}
return 1;
}