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; }
SendMessageToBox(str);
return 1;
#pragma tabsize 0
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 0;
}
PHP код:
PHP код:
|
end return have public onplayerdisconnect. return 0; value can not be specified
|
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; }
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; }
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.
switch(reason)
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; }