Warning 217: loosing intendation?
#1

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?
Reply
#2

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
Reply
#3

Thanks =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)