05.05.2015, 17:45
this is my command,
Getting this errors:
i think there is something wrong in the commands!
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;
}
CMD:enter(playerid,params[])
{
for(new i = 0; 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]); }
{
if(DoorInfo[i][ddCustomExterior]) Player_StreamPrep(playerid, DoorInfo[i][dEnterX],DoorInfo[i][dEnterY],DoorInfo[i][dEnterZ], FREEZE_TIME);
}
return 1;
}
PHP код:
(381) : warning 217: loose indentation
(387) : warning 217: loose indentation
(387) : error 029: invalid expression, assumed zero
C:\Users\Kevin\Desktop\Deathmatch Neo\filterscripts\DoorSys.pwn(387) : error 017: undefined symbol "cmd_enter"
(387) : error 029: invalid expression, assumed zero
(387) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.