Loose indentation - 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: Loose indentation (
/showthread.php?tid=420509)
Loose indentation -
S4ba - 05.03.2013
Yo, when i compile my script this happend :
C:\Users\Marko\Desktop\trucking\gamemodes\PPC_Truc king.pwn(787) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
line 787 :
can anyone tell me how to fix this ?
All was normal but when i edited this lines, warning shows
pawn Код:
// This callback gets called when the player is selecting a class (but hasn't clicked "Spawn" yet)
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-2181.8604,-248.0030,40.7195);
SetPlayerCameraPos(playerid,-2186.5913,-248.0875,40.7195);
SetPlayerCameraLookAt(playerid,-2181.8604,-248.0030,40.7195);
SetPlayerFacingAngle(playerid,86.9258);
EDIT: i know i can ignore this warning but how i can fix it ? :P
THX ^
Re: Loose indentation -
DiGiTaL_AnGeL - 05.03.2013
Ident your codes.
Re: Loose indentation -
PabloDiCostanzo - 05.03.2013
Show us, all your code
Re: Loose indentation -
doreto - 05.03.2013
Quote:
Originally Posted by IRio97
<removed for sanity - ******>
|
don't ever use it !
pawn Код:
// This callback gets called when the player is selecting a class (but hasn't clicked "Spawn" yet)
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid,-2181.8604,-248.0030,40.7195);
SetPlayerCameraPos(playerid,-2186.5913,-248.0875,40.7195);
SetPlayerCameraLookAt(playerid,-2181.8604,-248.0030,40.7195);
SetPlayerFacingAngle(playerid,86.9258);
return 1;
}
Re: Loose indentation -
S4ba - 05.03.2013
Bump !
Re: Loose indentation -
InfiniTy. - 05.03.2013
Quote:
Originally Posted by S4ba
Bump !
|
You already got the answer.
Quote:
Originally Posted by DiGiTaL_AnGeL
Ident your codes.
|
If you don't know what 'indent' is and how to do it.
https://sampforum.blast.hk/showthread.php?tid=251335
Read #1 [Part 1: Proper indenting]
Re: Loose indentation -
Gamer_007 - 05.03.2013
Just add this at top of ur script
Re: Loose indentation -
S4ba - 05.03.2013
http://i45.tinypic.com/iw3lnt.png
still same...
Re: Loose indentation -
iggy1 - 05.03.2013
Quote:
Originally Posted by Gamer_007
Just add this at top of ur script
|
All that does is hide the problem, it doesn't make it go away. Very bad advice.
@S4ba learn to
indent your code and you can fix it.
Re: Loose indentation -
S4ba - 05.03.2013
Thanks