Author Topic: Pawno Error  (Read 3803 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Pawno Error
« on: August 23, 2011, 05:08:37 pm »
[pawn]warning 217: loose indentation[/pawn]

I need help on fixing this warning.
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Pawno Error
« Reply #1 on: August 23, 2011, 09:38:40 pm »
Indent it so it looks good.
Problem solved.

Also, you might need #pragma tabsize 4 at the top of your scripts.
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Pawno Error
« Reply #2 on: August 24, 2011, 05:28:39 am »
That really remove all of that warning. But now I have another warning issue to deal with. It is this: [pawn]warning 202: number of arguments does not match definition[/pawn]. Any idea of how to remove this?
I'm beginning to feel like a Lag God, Lag God

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Pawno Error
« Reply #3 on: August 24, 2011, 08:30:19 pm »
Post that line of code so we can help you

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Pawno Error
« Reply #4 on: August 25, 2011, 05:08:57 am »
[pawn]new sp=0;
    AddStaticPickup(sp++,366,323.4258,-278.1154,35.4035);//   third rail conssite health
    AddStaticPickup(sp++,289,312.0720,-237.6959,38.3752);// m60
    AddStaticPickup(sp++,280,313.0720,-236.6959,38.3752);//   m4
    AddStaticPickup(sp++,289,314.0720,-235.6959,38.3752);// m60
    AddStaticPickup(sp++,280,315.0720,-234.6959,38.3752);// m4
    AddStaticPickup(sp++,368,266.4264,-249.8750,36.1315);//   conssite armour
    AddStaticPickup(sp++,366,373.7430,-255.7513,46.0797);//   conssite health
    AddStaticPickup(sp++,368,341.0047,-230.0483,38.3752);//   conssite armour
   AddStaticPickup(sp++,272,341.0047,-230.0483,38.3752);// conSitetopbeamspot2 molotov
   AddStaticPickup(sp++,288,311.0720,-238.6959,38.3752);// consSitetopbeamspot1 flamethrower
   AddStaticPickup(sp++,289,310.9177,-247.0352,38.3752);//conssitetowertop4 m60
   AddStaticPickup(sp++,279,341.0943,-247.0340,38.3752);//conssiteToprailX stubby
   AddStaticPickup(sp++,269,291.3840,-238.8288,29.0104);//conssitelowertopbeamfront chainsaw
//   AddStaticPickup(sp++,258,333.570099,-230.904694,29.646601,1,4);// cellphone
//   AddStaticPickup(sp++,501,335.570099,-230.904694,29.646601,10,4);// $10 cash every 4 seconds
//   AddStaticPickup(sp++,501,335.570099,-230.904694,31.646601,20,8);// $20 cash every 8 seconds
   AddStaticPickup(sp++,285,335.570099,-240.904694,30.0);// $nip3r
   AddStaticPickup(sp++,286,335.570099,-245.904694,30.0);// laser $nip3r
   AddStaticPickup(sp++,287,335.570099,-250.904694,30.0);// rocket
   AddStaticPickup(sp++,366,-113.2,-975.7,10.4);
   AddStaticPickup(sp++,366,-225.1,-1158.1,9.1);
   AddStaticPickup(sp++,366,456.2,-471.4,16.6);
   AddStaticPickup(sp++,366,377.4,467.7,11.6);
   AddStaticPickup(sp++,366,469.6,697.4,11.7);
   AddStaticPickup(sp++,366,385.3,1210.9,19.4);
   AddStaticPickup(sp++,366,384.3,756.6,11.7);
   AddStaticPickup(sp++,366,10.7,1099.0,16.6);
   AddStaticPickup(sp++,366,85.3,402.7,19.8);
   AddStaticPickup(sp++,366,-711.7,-501.7,11.3);
   AddStaticPickup(sp++,366,-404,-588.0,11.6);
   AddStaticPickup(sp++,366,-406.2503,-566.4947,19.5804);
   AddStaticPickup(sp++,366,-478.1,438.5,16.1);
   AddStaticPickup(sp++,366,-67,1263.3,25.1);
   AddStaticPickup(sp++,366,-821.8,1144.8,26.1);
   AddStaticPickup(sp++,366,-1139.4,55.4,11.2);
   AddStaticPickup(sp++,366,-1290.9,91.9,26.9);
   AddStaticPickup(sp++,366,-885.4,-483.4,13.1);
   AddStaticPickup(sp++,366,-925.1,-638.3,16.0);
   AddStaticPickup(sp++,366,-692.4,-1283.8,11.1);
   AddStaticPickup(sp++,366,-655.1,-1506.3,8.1);
   AddStaticPickup(sp++,366,-1399.4,-865.9,20.9);
   AddStaticPickup(sp++,366,-822.6,1137.3,12.4);
   AddStaticPickup(sp++,366,851.4,-78.8,11.5);
   AddStaticPickup(sp++,366,834.2,740.6,11.3);
   AddStaticPickup(sp++,288,-990.6908,263.9287,8.8123);//printunderground flamethrower
   AddStaticPickup(sp++,278,-988.6908,263.9287,8.8123);//printunderground stubby
   AddStaticPickup(sp++,280,-986.6908,263.9287,8.8123);//printunderground m4
   AddStaticPickup(sp++,368,-1034.1990,41.1718,11.3544);// nearpizzagrave armour
   AddStaticPickup(sp++,368,-1472.9331,-866.6178,20.8979);// airportarmour
   AddStaticPickup(sp++,368,-855.5118,-631.2861,11.3756);//24-7armor
   AddStaticPickup(sp++,368,407.7466,-483.1101,12.3432);//copshoparmor
   AddStaticPickup(sp++,289,466.8858,42.1850,33.0713); //maliroof1spawn1 m60
   AddStaticPickup(sp++,278,519.8986,-120.6429,37.9095);// maliroof2pickup2 stubby[/pawn]

This is the script.
I'm beginning to feel like a Lag God, Lag God

Offline Aldo

  • Wiseguy
  • **
  • Posts: 52
    • View Profile
Re: Pawno Error
« Reply #5 on: August 26, 2011, 09:30:40 pm »
[pawn]new sp=0;
    AddStaticPickup(sp++,366,323.4258,-278.1154,35.4035);//   third rail conssite health
    AddStaticPickup(sp++,289,312.0720,-237.6959,38.3752);// m60
    AddStaticPickup(sp++,280,313.0720,-236.6959,38.3752);//   m4
    AddStaticPickup(sp++,289,314.0720,-235.6959,38.3752);// m60
    AddStaticPickup(sp++,280,315.0720,-234.6959,38.3752);// m4
    AddStaticPickup(sp++,368,266.4264,-249.8750,36.1315);//   conssite armour
    AddStaticPickup(sp++,366,373.7430,-255.7513,46.0797);//   conssite health
    AddStaticPickup(sp++,368,341.0047,-230.0483,38.3752);//   conssite armour
   AddStaticPickup(sp++,272,341.0047,-230.0483,38.3752);// conSitetopbeamspot2 molotov
   AddStaticPickup(sp++,288,311.0720,-238.6959,38.3752);// consSitetopbeamspot1 flamethrower
   AddStaticPickup(sp++,289,310.9177,-247.0352,38.3752);//conssitetowertop4 m60
   AddStaticPickup(sp++,279,341.0943,-247.0340,38.3752);//conssiteToprailX stubby
   AddStaticPickup(sp++,269,291.3840,-238.8288,29.0104);//conssitelowertopbeamfront chainsaw
//   AddStaticPickup(sp++,258,333.570099,-230.904694,29.646601,1,4);// cellphone
//   AddStaticPickup(sp++,501,335.570099,-230.904694,29.646601,10,4);// $10 cash every 4 seconds
//   AddStaticPickup(sp++,501,335.570099,-230.904694,31.646601,20,8);// $20 cash every 8 seconds
   AddStaticPickup(sp++,285,335.570099,-240.904694,30.0);// $nip3r
   AddStaticPickup(sp++,286,335.570099,-245.904694,30.0);// laser $nip3r
   AddStaticPickup(sp++,287,335.570099,-250.904694,30.0);// rocket
   AddStaticPickup(sp++,366,-113.2,-975.7,10.4);
   AddStaticPickup(sp++,366,-225.1,-1158.1,9.1);
   AddStaticPickup(sp++,366,456.2,-471.4,16.6);
   AddStaticPickup(sp++,366,377.4,467.7,11.6);
   AddStaticPickup(sp++,366,469.6,697.4,11.7);
   AddStaticPickup(sp++,366,385.3,1210.9,19.4);
   AddStaticPickup(sp++,366,384.3,756.6,11.7);
   AddStaticPickup(sp++,366,10.7,1099.0,16.6);
   AddStaticPickup(sp++,366,85.3,402.7,19.8);
   AddStaticPickup(sp++,366,-711.7,-501.7,11.3);
   AddStaticPickup(sp++,366,-404,-588.0,11.6);
   AddStaticPickup(sp++,366,-406.2503,-566.4947,19.5804);
   AddStaticPickup(sp++,366,-478.1,438.5,16.1);
   AddStaticPickup(sp++,366,-67,1263.3,25.1);
   AddStaticPickup(sp++,366,-821.8,1144.8,26.1);
   AddStaticPickup(sp++,366,-1139.4,55.4,11.2);
   AddStaticPickup(sp++,366,-1290.9,91.9,26.9);
   AddStaticPickup(sp++,366,-885.4,-483.4,13.1);
   AddStaticPickup(sp++,366,-925.1,-638.3,16.0);
   AddStaticPickup(sp++,366,-692.4,-1283.8,11.1);
   AddStaticPickup(sp++,366,-655.1,-1506.3,8.1);
   AddStaticPickup(sp++,366,-1399.4,-865.9,20.9);
   AddStaticPickup(sp++,366,-822.6,1137.3,12.4);
   AddStaticPickup(sp++,366,851.4,-78.8,11.5);
   AddStaticPickup(sp++,366,834.2,740.6,11.3);
   AddStaticPickup(sp++,288,-990.6908,263.9287,8.8123);//printunderground flamethrower
   AddStaticPickup(sp++,278,-988.6908,263.9287,8.8123);//printunderground stubby
   AddStaticPickup(sp++,280,-986.6908,263.9287,8.8123);//printunderground m4
   AddStaticPickup(sp++,368,-1034.1990,41.1718,11.3544);// nearpizzagrave armour
   AddStaticPickup(sp++,368,-1472.9331,-866.6178,20.8979);// airportarmour
   AddStaticPickup(sp++,368,-855.5118,-631.2861,11.3756);//24-7armor
   AddStaticPickup(sp++,368,407.7466,-483.1101,12.3432);//copshoparmor
   AddStaticPickup(sp++,289,466.8858,42.1850,33.0713); //maliroof1spawn1 m60
   AddStaticPickup(sp++,278,519.8986,-120.6429,37.9095);// maliroof2pickup2 stubby[/pawn]

This is the script.

When I compile this "Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase"
Are you sure this is the problem line(s)?

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Pawno Error
« Reply #6 on: August 27, 2011, 08:03:09 am »
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
I'm beginning to feel like a Lag God, Lag God