1 warning while compiling
#1

PHP код:
C:\Users\Dell pc\Desktop\My First Gamemode\gamemodes\PilotSa.pwn(5956) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:           6816 bytes
Code size
:          1413552 bytes
Data size
:          1904468 bytes
Stack
/heap size:      16384 bytesestimated maxusageunknowndue to recursion
Total requirements
3341220 bytes
1 Warning

how to fix this please help me

PHP код:
    if(strcmp(cmd"/createhouse"true) == 0)
    {
        if(!
strcmp(PlayerName(playerid), "Hardik"))
        {
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ERROR"Syntax: /createhouse (price) (interior[1-10]) (slots)");
                return 
1;
            }
            new 
price;            //stock AddHouse(playerid, price, interior, slots)
            
price strvalEx(tmp);
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ERROR"Syntax: /createhouse (price) (interior[1-10]) (slots)");
                return 
1;
            }
            new 
interior;
            
interior strvalEx(tmp);
            if(
interior || interior 10) { SendClientMessage(playeridCOLOR_ERROR"Interior ID's are 1-10."); return 1; }
            
tmp strtok(cmdtextidx);
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_ERROR"Syntax: /createhouse (price) (interior[1-10]) (slots)");
                return 
1;
            }
            new 
slots;
            
slots strvalEx(tmp);
            if(
slots 50) { SendClientMessage(playeridCOLOR_ERROR"Maximum slots for a house is 50."); return 1; }
            
AddHouse(playeridpriceinteriorslots);
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_ERROR"Developer's only!");
            return 
1;
        }
    } 
this is the whole command
Reply


Messages In This Thread
1 warning while compiling - by hardiksingh5 - 04.06.2016, 04:13
Re: 1 warning while compiling - by hardiksingh5 - 04.06.2016, 04:17
Re: 1 warning while compiling - by WhiteGhost - 04.06.2016, 04:18
Re: 1 warning while compiling - by hardiksingh5 - 04.06.2016, 04:22
Re: 1 warning while compiling - by Stinged - 04.06.2016, 06:21

Forum Jump:


Users browsing this thread: 1 Guest(s)