SA-MP Forums Archive
Get 1 ERROR - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get 1 ERROR (/showthread.php?tid=320044)



Get 1 ERROR - Eiy Mard - 21.02.2012

Код:
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;
}



Re: Get 1 ERROR - Littlehelper - 21.02.2012

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


Re: Get 1 ERROR - emokidx - 21.02.2012

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


Re: Get 1 ERROR - Eiy Mard - 21.02.2012

ty guys !


Re: Get 1 ERROR - niels44 - 21.02.2012

you also can use: #pragma tabsize 0


Re: Get 1 ERROR - Konstantinos - 21.02.2012

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.


Re: Get 1 ERROR - Eiy Mard - 22.02.2012

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