[HELP] 217, but why?
#1

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

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

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

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)