SA-MP Forums Archive
errors - 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: errors (/showthread.php?tid=77253)



errors - johnnie_knoxville - 09.05.2009

if(strcmp(cmd, "/LSPDBarrier1open", true) == 0) // Command
{
if(IsACop(playerid)) // Checks if the player is in the police
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.81 8847); // Moves the object
}
}
if(strcmp(cmd, "/LSPDBarrier1close", true) == 0)
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,89.000000,269.8 18847);
}
return 1;
}



C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8451) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8457) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(8462) : warning 217: loose indentation
C:\Documents and Settings\pc\Desktop\GTA San Andreas\pawno\WC-RP.pwn(28645) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph" (did forward GetPointDistanceToPointExMorph but says another mistake)


Re: errors - Danut - 09.05.2009

put this at the top of script
pawn Код:
#pragma tabsize 0
#pragma unused GetPointDistanceToPointExMorph



Re: errors - johnnie_knoxville - 09.05.2009

how to solve the loose indentation?


Re: errors - Klutty - 09.05.2009

Quote:
Originally Posted by johnnie_knoxville
how to solve the loose indentation?
You can always use the auto loose indentation corrector.


Re: errors - Danut - 09.05.2009

Quote:
Originally Posted by johnnie_knoxville
how to solve the loose indentation?
if u use what i posted , you'll solve the loose indentation


Re: errors - Gamer007 - 09.05.2009

MoroJR it only hides them but not corrects


Re: errors - member - 09.05.2009

Quote:
Originally Posted by Gamer007
MoroJR it only hides them but not corrects
No Point hiding loose indentation, it might cause problems later on.

Use
http://dracoblue.net/tidy/pawn/
for indentation, but preferably indent ur code urself.