Little help needed, 2 Warning in Pawn haha
#1

Hey Guys I would need your help a bit :P

I'm creating a filterscript for my gamemode.... lol

Source Taken by http://forum.sa-mp.com/index.php?topic=93746.0 ... Here's the Filterscript Source

Код:
#include <a_samp>

#define COLOR_BLUE 0x33AAFFFF

public OnFilterScriptInit()
{
CreateObject(18450, -259.410187, 2218.167480, 87.569893, 0.0000, 0.0000, 348.7500);
CreateObject(18450, -287.167816, 2224.024658, 90.681847, 0.0000, 7.7349, 348.7500);
CreateObject(18450, -268.084656, 2220.319336, 87.913918, 0.0000, 6.0161, 348.7500);
CreateObject(18450, -267.526367, 2219.783691, 87.884720, 0.0000, 2.5783, 348.7500);
CreateObject(18450, -298.622009, 2226.600586, 95.089737, 0.0000, 13.7510, 348.7500);
CreateObject(18450, -289.071411, 2225.229736, 95.201881, 0.0000, 24.0642, 348.7500);
CreateObject(18450, -286.282471, 2225.154541, 94.697990, 0.0000, 29.2208, 348.7500);
CreateObject(18450, -287.815338, 2225.953613, 96.249374, 0.0000, 34.3775, 348.7500);
CreateObject(18450, -290.268707, 2226.788086, 99.111084, 0.0000, 42.9718, 348.7500);
CreateObject(18450, -294.200165, 2228.041504, 105.215149, 0.0000, 53.2850, 348.7500);
CreateObject(18450, -292.565582, 2228.040771, 104.341789, 0.0000, 62.7388, 348.7500);
CreateObject(18450, -293.885437, 2228.770020, 110.269539, 0.0000, 73.9115, 348.7500);
CreateObject(18450, -293.425690, 2229.038818, 113.076279, 0.0000, 84.2247, 348.7500);
CreateObject(18450, -293.343048, 2229.504395, 116.371017, 0.0000, 86.8030, 348.7500);
CreateObject(18450, -293.068573, 2229.966553, 118.691010, 0.0000, 90.2408, 348.7500);
CreateObject(18450, -292.633850, 2230.273193, 120.228081, 0.0000, 96.2569, 348.7500);
CreateObject(18450, -291.402618, 2230.311035, 125.366180, 0.0000, 103.9918, 348.7500);
CreateObject(18450, -290.328491, 2230.416260, 128.019669, 0.0000, 109.1483, 348.7500);
CreateObject(18450, -288.755859, 2230.769287, 131.774979, 0.0000, 113.4455, 348.7500);
CreateObject(18450, -286.303925, 2230.709717, 136.427155, 0.0000, 119.4616, 348.7500);
CreateObject(18450, -285.336365, 2230.830078, 137.795563, 0.0000, 123.7588, 348.7500);
CreateObject(18450, -284.446564, 2231.047607, 139.049423, 0.0000, 129.7749, 348.7500);
CreateObject(18450, -281.525635, 2230.793945, 142.392899, 0.0000, 133.2127, 348.7500);
CreateObject(18450, -278.605988, 2230.665039, 145.185028, 0.0000, 137.5099, 348.7500);
CreateObject(18450, -273.246887, 2229.931641, 149.231827, 0.0000, 142.6666, 348.7500);
CreateObject(18450, -271.563293, 2230.113525, 149.927383, 0.0000, 146.1044, 348.7500);
CreateObject(18450, -269.424164, 2230.063965, 149.863266, 0.0000, 156.4177, 348.7500);
CreateObject(18450, -264.325195, 2231.104736, 151.201019, 0.0000, 161.5743, 348.7500);
CreateObject(18450, -262.869507, 2229.103027, 150.330399, 0.0000, 168.4499, 348.7500);
CreateObject(18450, -261.671844, 2229.320801, 150.094971, 0.0000, 171.0282, 348.7500);
CreateObject(18450, -262.745667, 2230.685303, 149.794693, 0.0000, 171.8876, 348.7500);
CreateObject(18450, -262.633545, 2229.907959, 149.379089, 0.0000, 175.3254, 348.7500);
CreateObject(18450, -258.220856, 2230.009521, 148.832123, 0.0000, 184.7793, 348.7500);
CreateObject(18450, -257.892639, 2229.259033, 147.927643, 0.0000, 189.0765, 348.7500);
CreateObject(18450, -255.072861, 2230.909424, 149.690414, 0.0000, 189.0765, 348.7500);
CreateObject(18450, -256.947418, 2229.440186, 147.190781, 0.0000, 196.8115, 348.7500);
CreateObject(18450, -250.539673, 2228.426514, 144.650360, 0.0000, 202.8276, 348.7500);
CreateObject(18450, -249.053146, 2228.273682, 143.676453, 0.0000, 207.9843, 348.7500);
CreateObject(18450, -247.174561, 2227.892334, 142.236420, 0.0000, 214.0003, 348.7500);
CreateObject(18450, -256.191559, 2229.677002, 149.498413, 0.0000, 218.2976, 348.7500);
CreateObject(18450, -248.513962, 2228.611572, 144.683899, 0.0000, 224.3137, 348.7500);
CreateObject(18450, -235.864319, 2226.696289, 132.195480, 0.0000, 227.7514, 348.7500);
CreateObject(18450, -228.502472, 2225.647461, 123.642723, 0.0000, 232.0486, 348.7500);
CreateObject(18450, -227.963943, 2225.982666, 122.963844, 0.0000, 235.4863, 348.7500);
CreateObject(18450, -223.187668, 2225.409668, 115.436432, 0.0000, 238.0646, 348.7500);
CreateObject(18450, -224.041733, 2226.047363, 116.737846, 0.0000, 241.5023, 348.7500);
CreateObject(18450, -218.446335, 2225.523682, 105.549042, 0.0000, 244.0806, 348.7500);
CreateObject(18450, -218.525040, 2226.099365, 105.095543, 0.0000, 248.3777, 348.7500);
CreateObject(18450, -219.310364, 2226.188965, 107.816650, 0.0000, 252.6748, 348.7500);
CreateObject(18450, -217.384476, 2226.075439, 102.978241, 0.0000, 264.7068, 348.7500);
CreateObject(18450, -216.925201, 2226.585938, 94.759651, 0.0000, 273.3012, 348.7500);
CreateObject(18450, -217.579224, 2227.045654, 88.366623, 0.0000, 276.7388, 348.7500);
CreateObject(18450, -217.706741, 2227.668945, 89.274040, 0.0000, 285.3332, 348.7500);
CreateObject(18450, -218.744507, 2228.271240, 85.840622, 0.0000, 288.7708, 348.7500);
CreateObject(18450, -219.289520, 2229.064209, 84.568352, 0.0000, 296.5057, 348.7500);
CreateObject(18450, -221.269211, 2230.059082, 81.329735, 359.1406, 305.1000, 348.7500);
CreateObject(18450, -221.748642, 2230.594238, 80.674728, 359.1406, 310.2566, 348.7500);
CreateObject(18450, -222.053192, 2231.254150, 80.121429, 359.1406, 316.2726, 348.7500);
CreateObject(18450, -226.344879, 2232.474365, 76.253754, 359.1406, 321.4292, 348.7500);
CreateObject(18450, -226.522476, 2232.968262, 76.152679, 359.1406, 326.5857, 348.7500);
CreateObject(18450, -229.214081, 2233.828125, 74.749268, 359.1406, 336.0395, 348.7500);
CreateObject(18450, -256.570770, 2217.604492, 87.131874, 0.8594, 353.1245, 348.7500);
CreateObject(18450, -211.058640, 2208.485352, 93.179535, 0.8594, 351.4056, 348.7500);
CreateObject(18450, -152.848404, 2196.706543, 106.625137, 0.8594, 341.0924, 348.7500);
CreateObject(18450, -175.813126, 2201.411621, 99.032677, 0.8594, 346.2490, 348.7500);
CreateObject(18450, -115.734314, 2189.141113, 120.084190, 0.8594, 336.7952, 348.7500);
CreateObject(18450, -70.033073, 2179.636963, 143.447403, 0.8594, 331.6386, 348.7500);
CreateObject(18450, -17.793976, 2168.735596, 175.538971, 0.8594, 324.7631, 348.7500);
CreateObject(18450, -179.736069, 2202.195313, 98.573303, 0.8594, 348.8273, 348.7500);
CreateObject(18450, -172.160934, 2200.744873, 100.259888, 0.8594, 343.6707, 348.7500);
CreateObject(18450, -95.462349, 2184.883545, 129.285934, 0.8594, 335.9358, 348.7500);
CreateObject(18450, -31.091612, 2171.531982, 165.897781, 0.8594, 328.2008, 348.7500);
CreateObject(18450, -233.388214, 2234.977295, 73.218056, 359.1406, 341.1960, 348.7500);
CreateObject(18450, -235.993347, 2235.784424, 72.460358, 359.1406, 345.4932, 348.7500);
CreateObject(18450, -241.460205, 2237.271729, 71.532120, 359.1406, 350.6498, 348.7500);
CreateObject(18450, -243.423157, 2238.042969, 71.509544, 359.1406, 355.8063, 348.7500);
CreateObject(18450, -276.918549, 2244.667480, 68.706825, 359.1406, 0.1035, 348.7500);
CreateObject(18450, -283.611877, 2245.989014, 68.750816, 359.1406, 356.6658, 348.7500);
CreateObject(18450, -345.669250, 2258.371094, 68.788239, 359.1406, 0.1035, 348.7500);
CreateObject(18450, -421.067566, 2273.354736, 68.889893, 359.1406, 0.1035, 348.7500);
CreateObject(18450, -489.530884, 2286.988281, 68.967384, 359.1406, 0.1035, 348.7500);
CreateObject(18450, 9.118795, 2163.071045, 195.905991, 0.8594, 322.1848, 348.7500);
CreateObject(18450, 18.768557, 2161.038818, 204.430984, 0.8594, 318.7470, 348.7500);
CreateObject(18450, 46.812565, 2155.100098, 230.079254, 0.8594, 315.3093, 348.7500);
CreateObject(8040, 113.465294, 2141.523682, 259.240021, 0.0000, 0.0000, 167.9678);
CreateObject(1632, -527.463013, 2300.360840, 70.477486, 0.0000, 0.0000, 76.1717);
CreateObject(1632, -528.475891, 2296.423096, 70.462807, 0.0000, 0.0000, 76.1717);
CreateObject(1632, -529.391174, 2292.698975, 70.438362, 0.0000, 0.0000, 76.1717);
CreateObject(1632, -530.368958, 2288.743652, 70.403465, 0.0000, 0.0000, 76.1717);
CreateObject(1632, -532.669556, 2289.389160, 71.832489, 10.3132, 0.0000, 76.1717);
CreateObject(1632, -531.658875, 2293.432617, 71.814041, 10.3132, 0.0000, 76.1717);
CreateObject(1632, -530.714478, 2297.181152, 71.794594, 10.3132, 0.0000, 76.1717);
CreateObject(1632, -529.746155, 2300.965820, 71.781929, 10.3132, 0.0000, 76.1717);
CreateObject(1632, -530.856567, 2301.173584, 72.701088, 14.6104, 0.0000, 76.1717);
CreateObject(1632, -531.787659, 2297.260986, 72.702759, 14.6104, 0.0000, 76.1717);
CreateObject(1632, -532.747375, 2293.295166, 72.707176, 14.6104, 0.0000, 76.1717);
CreateObject(1632, -533.628296, 2289.515137, 72.680000, 14.6104, 0.0000, 76.1717);
CreateObject(1632, -535.651978, 2290.028076, 75.175201, 27.5020, 0.0000, 76.1717);
CreateObject(1632, -534.660889, 2293.989014, 75.138176, 27.5020, 0.0000, 76.1717);
CreateObject(1632, -533.690735, 2297.926025, 75.119347, 27.5020, 0.0000, 76.1717);
CreateObject(1632, -532.698303, 2301.842773, 75.104424, 27.5020, 0.0000, 76.1717);

	}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/bigloop", cmdtext, true, 10) == 0)
	{
	SetPlayerInterior(playerid,0);
	SetPlayerPos(playerid, 113.5383,2131.7712,259.5135);
	SetPlayerFacingAngle(playerid, 73.4810);
	SendClientMessage(playerid, COLOR_BLUE, "Welcome to Big Loop Stunt Number 1! Have Fun! More Big Loops coming soon!!");
		return 1;
		}
return 0;
}
And here are the warnings

Код:
C:\Users\StaticX\Desktop\server\hYdra\gamemodes\bigloop.pwn(122) : warning 217: loose indentation
C:\Users\StaticX\Desktop\server\hYdra\gamemodes\bigloop.pwn(124) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Can somebody help me fix it? Lol
Reply
#2

Quote:
Originally Posted by pawn-lang.pdf
217 loose indentation
Statements at the same logical level do not start in the same column; that is, the indents of the statements are different. Although pawn is a free format language, loose indentation frequently hides a logical error in the control flow. The compiler can also incorrectly assume loose indentation if the tab size with which you indented the source code differs from the assumed size, see #pragma tabsiz..
Reply
#3

sorry but cause i dont know a lot from english i dont understand those...

can't you edit my source and re-post it with the problem fixxed?
Reply
#4

http://pastebin.com/m5cdbbc63

See the difference?
Reply
#5

oh yes

Thank you very much
Reply
#6

You're welcome.
Reply
#7

Well, i am not that good in Pawno :P, i'm new, so pro scripters must learn us xD

haha...
Reply
#8

It's nice to see more people are learning pawn.
But i still think it's good if you read basics if you still didn't.
Reply
#9

lol, i've done, but as I am new, I can't remember all by hard :P
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)