[Help] Getting Warnings
#1

Will any one tell me why i am getting these warnings

warning 225: unreachable code
warning 217: loose indentation
warning 217: loose indentation
warning 217: loose indentation
Reply
#2

For loose indentation you can use, at the beginning of your script (Next to includes):

pawn Код:
#pragma tabsize 0
What causes loose indentation warning?

No warning:

pawn Код:
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Welcome to {FFA600}SA-MP server.");
SetPlayerColor(playerid, 0xFFA600AA);
return 1;
}
Loose indentation warning:

pawn Код:
public OnPlayerConnect(playerid)
{
   SendClientMessage(playerid, 0xFFFFFFAA, "Welcome to {FFA600}SA-MP server.");
            SetPlayerColor(playerid, 0xFFA600AA);
return 1;
}
For the other warning (unreachable code) you must show us your lines. Probably you have no code between brackets.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)