[Help] Getting Warnings - 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)
+--- Thread: [Help] Getting Warnings (
/showthread.php?tid=552605)
[Help] Getting Warnings -
Arxalan - 25.12.2014
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 -
Ygzeb - 25.12.2014
For loose indentation you can use, at the beginning of your script (Next to includes):
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.