loose indentation help?
#1

Код:
C:\Users\piзww3\Desktop\ww3\gamemodes\cod.pwn(395) : warning 217: loose indentation
C:\Users\piзww3\Desktop\ww3\gamemodes\cod.pwn(398) : warning 225: unreachable code
C:\Users\piзww3\Desktop\ww3\gamemodes\cod.pwn(398) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
Код:
	switch(reason)
    {
        case 0: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)", PlayerName,playerid);
        case 1: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)", PlayerName,playerid);
        case 2: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)", PlayerName,playerid);
        }
        SendMessageToBox(str);
        return 1;

	return 1;
}
Line 395
Код:
SendMessageToBox(str);
398;

Код:
return 1;
Reply
#2

PHP код:
#pragma tabsize 0 
PHP код:
switch(reason)
    {
        case 
0format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)"PlayerName,playerid);
        case 
1format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)"PlayerName,playerid);
        case 
2format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)"PlayerName,playerid);
        }
        
SendMessageToBox(str);
        return 
1;
}
    return 
0;

Reply
#3

Quote:
Originally Posted by ProRakNet
Посмотреть сообщение
PHP код:
#pragma tabsize 0 
PHP код:
switch(reason)
    {
        case 
0format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)"PlayerName,playerid);
        case 
1format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)"PlayerName,playerid);
        case 
2format(strsizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)"PlayerName,playerid);
        }
        
SendMessageToBox(str);
        return 
1;
}
    return 
0;

end return have public onplayerdisconnect. return 0; value can not be specified
Reply
#4

Quote:
Originally Posted by PrednizoN
Посмотреть сообщение
end return have public onplayerdisconnect. return 0; value can not be specified
right, i think the stock function. plus, you've got a trailing closing bracket. } forgotten that.
Reply
#5

This will be true:

Код:
switch(reason)
        {
            case 0: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)", PlayerName,playerid);
            case 1: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)", PlayerName,playerid);
            case 2: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)", PlayerName,playerid);
        }
        SendMessageToBox(str);
        return 1;
}
Reply
#6

Код:
switch(reason)
	{
		case 0: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)", PlayerName,playerid);
		case 1: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)", PlayerName,playerid);
		case 2: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)", PlayerName,playerid);
	}
        SendMessageToBox(str);
        return 1;
}
Reply
#7

Quote:
Originally Posted by Azhar
Посмотреть сообщение
This will be true:

Код:
switch(reason)
        {
            case 0: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)", PlayerName,playerid);
            case 1: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)", PlayerName,playerid);
            case 2: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)", PlayerName,playerid);
        }
        SendMessageToBox(str);
        return 1;
}
Код:
C:\Users\piзww3\Desktop\ww3\gamemodes\cod.pwn(389) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
389;
Код:
switch(reason)
Reply
#8

Код:
        switch(reason)
        {
            case 0: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Baglanti Koptu)", PlayerName,playerid);
            case 1: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kendi istegiyle)", PlayerName,playerid);
            case 2: format(str, sizeof(str), "%s(%d) isimli oyuncu sunucudan ~r~~h~cikis ~w~yapti.(Kick veya ban)", PlayerName,playerid);
        }
        SendMessageToBox(str);
        return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)