Warning - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Warning (
/showthread.php?tid=238221)
Warning -
GarD - 11.03.2011
(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 = 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;
}
Re: Warning -
Roomeo - 11.03.2011
show me the line 4133 in this script
Re: Warning -
GarD - 11.03.2011
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." );
Re: Warning -
Roomeo - 11.03.2011
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
Re: Warning -
Hashski - 11.03.2011
top of script
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;
}
Re: Warning -
xir - 11.03.2011
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
Re: Warning -
GarD - 11.03.2011
thx fix