SA-MP Forums Archive
[SOLVED] 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] Loose Indentation (/showthread.php?tid=91375)



[SOLVED] Loose Indentation - cozza123456 - 14.08.2009

(664 : warning 217: loose indentation

Line,
if (pickupid == House)


Surroundings,




public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Home)
{
SetPlayerPos(playerid,1298.3142,-797.9921,84.1406);
}

if (pickupid == Back)

{
SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);


if (pickupid == House)

{
SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);
}

}
return 1;
}





Re: [Help] Loose Indentation - XtremeChio - 14.08.2009

Tried like this ?


Код:
 public OnPlayerPickUpPickup(playerid, pickupid)
  {
  if (pickupid == Home)
  {
    SetPlayerPos(playerid,1298.3142,-797.9921,84.1406);
  }
  if (pickupid == Back)
  {
    SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);
  }
  if (pickupid == House)
  {
    SetPlayerPos(playerid,1384.9432,-2487.6943,16.9050);
  }
  return 1;
  }



Re: [Help] Loose Indentation - cozza123456 - 14.08.2009

brilliant tyvm