Get 1 ERROR
#1

Код:
C:\Users\Desktop\filterscripts\gangwar.pwn(271) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код HTML:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	   if(dialogid == 703)
		{
			if(response)
			{
			if (gteam[playerid] != 1){
			SetPlayerVirtualWorld(playerid, 1);
			SendClientMessage(playerid, 0x33AA33AA, "You joined to GROVE!");
			SendClientMessage(playerid, white, "Use /exit for exit!");
			GangWarGrove(playerid);}else{SendClientMessage(playerid, red, "Error: You are in the MINIGAME");}
			}
			if(response)
			{
			if (gteam[playerid] != 2){
			SetPlayerVirtualWorld(playerid, 1);
			SendClientMessage(playerid, 0x9900FFAA, "You joined to Ballas!");
			SendClientMessage(playerid, white, "Use /exit for exit!");
			GangWarBallas(playerid);}else{SendClientMessage(playerid, red, "Error: You are in the MINIGAME");}
        }
    }
  return 1;
}
Reply
#2

Hello,
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
            if(dialogid == 703)
        {
            if(response)
            {
            if (gteam[playerid] != 1){
            SetPlayerVirtualWorld(playerid, 1);
            SendClientMessage(playerid, 0x33AA33AA, "You joined to GROVE!");
            SendClientMessage(playerid, white, "Use /exit for exit!");
            GangWarGrove(playerid);}else{SendClientMessage(playerid, red, "Error: You are in the MINIGAME");}
            }
            if(response)
            {
            if (gteam[playerid] != 2){
            SetPlayerVirtualWorld(playerid, 1);
            SendClientMessage(playerid, 0x9900FFAA, "You joined to Ballas!");
            SendClientMessage(playerid, white, "Use /exit for exit!");
            GangWarBallas(playerid);}else{SendClientMessage(playerid, red, "Error: You are in the MINIGAME");}
        }
    }
    return 1;
}
This is For you
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=256961
Reply
#4

ty guys !
Reply
#5

you also can use: #pragma tabsize 0
Reply
#6

Quote:
Originally Posted by niels44
Посмотреть сообщение
you also can use: #pragma tabsize 0
I suggest not use it.
Indentation is very important in almost the most programming languages.
Reply
#7

ohh .. ok .. it's already fix ! ty again guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)