22.02.2012, 11:07
Hey guys ! Can someone help me with this warnings ? Thanks :
Line 10510 :
Line 12802 :
Line 12814 :
I tried much things but no change ...
pawn Код:
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(10510) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(12802) : warning 225: unreachable code
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(12802) : warning 217: loose indentation
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(12814) : warning 225: unreachable code
C:\Users\Win7\Desktop\Stunt King Romania 0.3d\Server\gamemodes\SKR.pwn(12814) : warning 217: loose indentation
pawn Код:
if (!strcmp("/v Boxville2", cmdtext, true))
{
if(SpawnedVehicles[playerid] != 0) DestroyVehicle(SpawnedVehicles[playerid]);
new Float:X,Float:Y,Float:Z,Float:ROT;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle (playerid,ROT);
SetVehicleNumberPlate(SpawnedVehicles[playerid] = CreateVehicle(606,X,Y,Z,ROT,-1,-1,60), "{0095FF}S{E5FF00}K{FF0000}R");
PutPlayerInVehicle(playerid,SpawnedVehicles[playerid],0);
GameTextForPlayer(playerid,"~h~~w~Boxville 2~n~~h~~w~ID:~h~~r~606",2500,1);
return 1;
}
return 0; // Here is the line with warning.
}
pawn Код:
COMMAND:yes(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
return ModCar(playerid);
}
else {
return SendClientMessage(playerid, COLOR_RED, "[EROARE] Nu poti tuna masina daca nu esti sofer.");
}
return 1; // Here is the line with warning.
}
pawn Код:
COMMAND:tunar(playerid, params[])
{
new playerstate = GetPlayerState(playerid);
if(playerstate == PLAYER_STATE_DRIVER) {
return ModCar(playerid);
}
else {
return SendClientMessage(playerid, COLOR_RED, "[EROARE] Nu poti tuna masina daca nu esti sofer.");
}
return 1; // Here is the line with warning.
}