SA-MP Forums Archive
Warning 217: loosing intendation? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning 217: loosing intendation? (/showthread.php?tid=186943)



Warning 217: loosing intendation? - Hudgens - 31.10.2010

Okay I'm a noob at scripting, but when I made my second "my command" I had this warning
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(124) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(127) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(129) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

And my cmd was
Код:
	}
		if (strcmp("/commands", cmdtext, true, 10) == 0)
	{
	SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
		return 1;
	}
Or just the whole my command lines
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/skatepark", cmdtext, true, 10) == 0)
	{
	SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703);
	SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!");
		// Do something here
 	}
		if (strcmp("/commands", cmdtext, true, 10) == 0)
	{
	SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
		return 1;
	}
	return 0;
What could cause this warning?


Re: Warning 217: loosing intendation? - WillyP - 31.10.2010

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/skatepark", cmdtext, true, 10) == 0)
    {
    SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703);
    SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!");
        // Do something here
    }
    if (strcmp("/commands", cmdtext, true, 10) == 0)
    {
            SendClientMessage(playerid,COLOR_YELLOW, "/skatepark");
        return 1;
    }
    return 0;
}
This forum requires that you wait 120 seconds between posts. Please try again in 9 seconds.

/ban antispam


Re: Warning 217: loosing intendation? - Hudgens - 31.10.2010

Thanks =)