SA-MP Forums Archive
[HELP] 217, but why? - 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: [HELP] 217, but why? (/showthread.php?tid=468508)



[HELP] 217, but why? - Sneling - 08.10.2013

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(
reason)
{
case 
0format(string,sizeof string,"%s partió del server. (Crash)",name);
case 
1format(string,sizeof string,"%s partió del server. (Salio)",name);
case 
2format(string,sizeof string,"%s partió del server. (Kick/Ban)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);

PHP код:
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\DarylMode.pwn(68) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning

Can you help me? thanks


Re: [HELP] 217, but why? - Konstantinos - 08.10.2013

Learn to indent the code properly. It's even easier to read it when it needs.
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    new
        string[64],
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,MAX_PLAYER_NAME);
    switch(reason)
    {
        case 0: format(string,sizeof string,"%s partiу del server. (Crash)",name);
        case 1: format(string,sizeof string,"%s partiу del server. (Salio)",name);
        case 2: format(string,sizeof string,"%s partiу del server. (Kick/Ban)",name);
    }
    SendClientMessageToAll(0xFFFFFFAA,string);
    return 1;
}



Re: [HELP] 217, but why? - Jefff - 08.10.2013

http://forum.sa-mp.com/showthread.ph...ighlight=error


Re: [HELP] 217, but why? - [EnErGyS]KING - 08.10.2013

But why people so lazy to read in english what error is it ? DD


Re: [HELP] 217, but why? - Sneling - 09.10.2013

ahah, i'm french, and i think that french and english are really confusing (when i look at my friends) but it's ok, partly like german.