problem sa warningom

Započeo Ruthless Pawno, Mart 17, 2019, 17:41:58 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Warning
Dio skripte: [pawn]C:\Users\User\Desktop\Nova Kuca RPG\gamemodes\nk-rpg.pwn(33394) : warning 217: loose indentation
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ] // [ /code ] /
Slika/video ingame problema(obavezno ako je ingame problem):na ovoj liniji mi se nalazi ovo:
[pawn]   else if( UlazUintRazdaljina(2, playerid, 1072.5684,-895.6995,43.3932,cx,cy,cz ) ) //ps ulaz[/pawn]

Posalji taj cijeli dio,ne samo tu liniju :)

[pawn]   else if( UlazUintRazdaljina(2, playerid, 1072.5684,-895.6995,43.3932,cx,cy,cz ) ) //ps ulaz
   {
         SetPlayerInterior(playerid,0);
         JBC_SetPlayerPos(playerid, 1075.7444,-898.2814,1043.3033);
         JBC_TogglePlayerControllable(playerid, 0);
         freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
    }
    else if( UlazUintRazdaljina(2, playerid, 1075.7444,-898.2814,1043.3033,cx,cy,cz ) ) //ps izlaz
   {
         SetPlayerInterior(playerid,0);
         JBC_SetPlayerPos(playerid, 1072.5684,-895.6995,43.3932);
         JBC_TogglePlayerControllable(playerid, 0);
         freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
    }[/pawn]

Citat: Ruthless Pawno poslato Mart 17, 2019, 17:44:54 POSLE PODNE
[pawn]   else if( UlazUintRazdaljina(2, playerid, 1072.5684,-895.6995,43.3932,cx,cy,cz ) ) //ps ulaz
   {
         SetPlayerInterior(playerid,0);
         JBC_SetPlayerPos(playerid, 1075.7444,-898.2814,1043.3033);
         JBC_TogglePlayerControllable(playerid, 0);
         freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
    }
    else if( UlazUintRazdaljina(2, playerid, 1075.7444,-898.2814,1043.3033,cx,cy,cz ) ) //ps izlaz
   {
         SetPlayerInterior(playerid,0);
         JBC_SetPlayerPos(playerid, 1072.5684,-895.6995,43.3932);
         JBC_TogglePlayerControllable(playerid, 0);
         freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
    }[/pawn]
"else if" drugi nije u ravnini sa prvim, to je problem, ja sam u pawnu ispravio, ovo si kopiraj:
[pawn]else if( UlazUintRazdaljina(2, playerid, 1072.5684,-895.6995,43.3932,cx,cy,cz ) ) //ps ulaz
{
   SetPlayerInterior(playerid,0);
   JBC_SetPlayerPos(playerid, 1075.7444,-898.2814,1043.3033);
   JBC_TogglePlayerControllable(playerid, 0);
   freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
}
else if( UlazUintRazdaljina(2, playerid, 1075.7444,-898.2814,1043.3033,cx,cy,cz ) ) //ps izlaz
{
   SetPlayerInterior(playerid,0);
   JBC_SetPlayerPos(playerid, 1072.5684,-895.6995,43.3932);
   JBC_TogglePlayerControllable(playerid, 0);
   freeze[playerid] =  SetTimerEx("Freeze",3000, false, "i", playerid);
}[/pawn]