Warning
#1

(4133) : warning 217: loose indentation

line 4133 because you have not met or does not hold a place of special duties." );

PHP код:
         case JOB_BUSDRIVER:
        {
            new
                
vehmodel GetVehicleModelGetPlayerVehicleIDplayerid ) );
            if ( 
GetPlayerState playerid ) != PLAYER_STATE_DRIVER )
            {
                
SendClientMessage playeridCOLOR_GREY" You have to sit in the driver's seat. " );
            }
            if ( 
vehmodel == 418)
            {
                if ( 
Checkpointplayerid ] != CHECKPOINT_BUSSTOP && GetPlayerInterior playerid ) == )
                {
                    new
                        
stopid GetNextBusStopplayerid );
                    
SetPlayerCheckpointExplayeridCHECKPOINT_BUSSTOP,
                                           
BusStopsstopid ][ ],
                                           
BusStopsstopid ][ ],
                                           
BusStopsstopid ][ ], );
                    
ShowInfoTextplayerid"~w~go to~r~red ~w~points"3000 );
                }
                else
                    
SendClientMessageplayeridCOLOR_GREY" You are already working or are busy with something else.." );
                return 
true;
          }
    
SendClientMessageplayeridCOLOR_GREY"   You may not use this command,\
                    because you have not met or does not hold a place of special duties." 
);
    return 
true;

Reply
#2

show me the line 4133 in this script
Reply
#3

4132 SendClientMessage( playerid, COLOR_GREY, " You may not use this command,\
4133 because you have not met or does not hold a place of special duties." );
Reply
#4

pawn Код:
SendClientMessage(playerid, COLOR_GREY, "You may not use this command Because you have not met or does not hold a place of Special Duties.");
replace it not tested
Reply
#5

top of script
pawn Код:
#pragma tabsize 0
or

pawn Код:
case JOB_BUSDRIVER:
{
    new vehmodel = GetVehicleModel( GetPlayerVehicleID( playerid ) );

    if ( GetPlayerState ( playerid ) != PLAYER_STATE_DRIVER ) {
        SendClientMessage ( playerid, COLOR_GREY, " You have to sit in the driver's seat. " );
    }
    if ( vehmodel == 418) {
        if ( Checkpoint[ playerid ] != CHECKPOINT_BUSSTOP && GetPlayerInterior ( playerid ) == 0 ) {
            new stopid = GetNextBusStop( playerid );

            SetPlayerCheckpointEx( playerid, CHECKPOINT_BUSSTOP,
                BusStops[ stopid ][ 0 ],
                BusStops[ stopid ][ 1 ],
                BusStops[ stopid ][ 2 ], 5 );

            ShowInfoText( playerid, "~w~go to~r~red ~w~points", 3000 );
        }
        else
            SendClientMessage( playerid, COLOR_GREY, " You are already working or are busy with something else.." );

        return true;
    }
    SendClientMessage( playerid, COLOR_GREY, "   You may not use this command,\ because you have not met or does not hold a place of special duties." );

    return true;
}
Reply
#6

You didn't indent your code.

You can use DracoBlue's AutoIndents website

http://dracoblue.net/tidy/pawn/

It will fix it so you lose the warning

You shouldn't do what Hashki says
Reply
#7

thx fix
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)