Command Text Warning
#1

Код HTML:
if(strcmp(cmd, "/openbomj", true) == 0)
    {
        if(PlayerInfo[playerid][pLeader] == 25 || PlayerInfo[playerid][pMember] == 25)
        {
            if(PlayerToPoint(18, playerid,1162.5000000,-1637.7000000,14.7000000))
            MoveObject(Bomji, 1162.5000000,-1637.7000000,14.7000000,0.0000000,0.0000000,0.0000000);
            SetTimer("BomjiCloseLS", 6000, 0);  // таймер (7 сек)
         }
         return true;
    }
Error
Код HTML:
C:\Users\Gigi\Desktop\Samp Server Fuliox RP Amx\1413562663_fuliox-rp\Fuliox-Rp\gamemodes\Fuliox-Rp.pwn(52126) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
52126 Line IS >>>
Код HTML:
return true;
Idk what is wrong
Reply
#2

Your code is not indented, that's the problem.
Learn more about code indentation here: Wikipedia
pawn Код:
if(strcmp(cmd, "/openbomj", true) == 0)
{
    if(PlayerInfo[playerid][pLeader] == 25 || PlayerInfo[playerid][pMember] == 25)
    {
        if(PlayerToPoint(18, playerid,1162.5000000,-1637.7000000,14.7000000))
        MoveObject(Bomji, 1162.5000000,-1637.7000000,14.7000000,0.0000000,0.0000000,0.0000000);
        SetTimer("BomjiCloseLS", 6000, 0);  // таймер (7 сек)
    }
    return true;
}
Reply
#3

Resolved Thanks#

but it dont move
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)