Map Error
#1

In my mode when I write the map code ex:

Quote:

CreateDynamicObject(6878, -1211.24548, 389.70132, 9.58974, 359.99707, 356.29211, 296.96082);
CreateDynamicObject(1655, 202.85001, -1271.64001, 78.15000, 0.00000, 0.00000, 220.78999);
CreateDynamicObject(13638, 674.03735, 1542.92285, 16.64520, 0.00000, 0.00000, 152.26222);
CreateDynamicObject(13638, 669.69196, 1558.48206, 8.76561, 0.00000, 0.00000, 152.26222);
CreateDynamicObject(13638, 678.45880, 1527.51575, 24.68570, 0.00000, 0.00000, 152.26222);
CreateDynamicObject(18982, 665.45520, 1471.36633, 35.12564, 0.00000, 0.00000, 344.3704;
CreateDynamicObject(18982, 641.07727, 1375.07361, 35.12564, 0.00000, 0.00000, 347.11871);
CreateDynamicObject(13592, 633.23975, 1318.17090, 40.16090, 0.00000, 0.00000, 77.66412);
CreateDynamicObject(13592, 639.34894, 1311.46765, 40.16090, 0.00000, 0.00000, 75.89224);
CreateDynamicObject(13592, 644.10541, 1301.18604, 40.16090, 0.00000, 0.00000, 74.04920);
CreateDynamicObject(13592, 649.32495, 1292.51294, 40.16090, 0.00000, 0.00000, 74.04920);
CreateDynamicObject(8378, 647.28278, 1253.34131, 29.72652, 90.00000, 0.00000, 77.71786);
CreateDynamicObject(13638, 629.86603, 1216.31665, 32.49448, 0.00000, 0.00000, 79.57285);
CreateDynamicObject(13638, 616.37939, 1222.35999, 40.40662, 0.00000, 0.00000, 345.71149);
CreateDynamicObject(13638, 609.15741, 1236.57410, 48.28742, 0.00000, 0.00000, 344.36856);
CreateDynamicObject(18827, 557.69183, 1256.81335, 58.84486, 0.00000, 0.00000, 74.52457);
CreateDynamicObject(18827, 466.89508, 1281.96399, 58.84486, 0.00000, 0.00000, 74.52457);
CreateDynamicObject(13592, 410.80972, 1292.21716, 63.84628, 0.00000, 0.00000, 353.91299);
CreateDynamicObject(6123, 319.04199, 1312.28967, 54.09885, 0.00000, 0.00000, 75.32050);
CreateDynamicObject(6123, 155.38602, 1354.93604, 54.09885, 0.00000, 0.00000, 75.32050);
CreateDynamicObject(6123, -13.97548, 1399.27222, 54.09885, 0.00000, 0.00000, 75.32050);
CreateDynamicObject(18983, -145.47096, 1433.44531, 74.97641, 19.00000, 4.00000, 76.00000);
CreateDynamicObject(18983, -321.49826, 1478.29578, 137.44479, 19.00000, 4.00000, 75.55592);
CreateDynamicObject(18983, -231.61601, 1455.12976, 105.44520, 19.00000, 4.00000, 75.55592);
CreateDynamicObject(8171, -437.54654, 1497.16785, 149.05815, 0.00000, 0.00000, 84.5167;

pawno give me error

Quote:

warning 217: loose indentation

but when I make space Ex:

Quote:

................CreateDynamicObject(6878, -1211.24548, 389.70132, 9.58974, 359.99707, 356.29211, 296.96082);
................CreateDynamicObject(1655, 202.85001, -1271.64001, 78.15000, 0.00000, 0.00000, 220.78999);
................CreateDynamicObject(13638, 674.03735, 1542.92285, 16.64520, 0.00000, 0.00000, 152.26222);
................CreateDynamicObject(13638, 669.69196, 1558.48206, 8.76561, 0.00000, 0.00000, 152.26222);
................CreateDynamicObject(13638, 678.45880, 1527.51575, 24.68570, 0.00000, 0.00000, 152.26222);
................CreateDynamicObject(18982, 665.45520, 1471.36633, 35.12564, 0.00000, 0.00000, 344.3704;
................CreateDynamicObject(18982, 641.07727, 1375.07361, 35.12564, 0.00000, 0.00000, 347.11871);
................CreateDynamicObject(13592, 633.23975, 1318.17090, 40.16090, 0.00000, 0.00000, 77.66412);
................CreateDynamicObject(13592, 639.34894, 1311.46765, 40.16090, 0.00000, 0.00000, 75.89224);
................CreateDynamicObject(13592, 644.10541, 1301.18604, 40.16090, 0.00000, 0.00000, 74.04920);
................CreateDynamicObject(13592, 649.32495, 1292.51294, 40.16090, 0.00000, 0.00000, 74.04920);

Not give me error and my map is very big ican't make space in it
Is there another way to fix error
I make "." before the codes to show the space not more
Sorry in my bad English
Reply
#2

TRY TO USE
Код:
#include 	<a_samp>
#pragma tabsize 0
IN YOUR SCRIPT I THINK IT MAY HELP
Reply
#3

After each '{' you have to put another tab (or 4 spaces) in front of the next line.

This is wrong indentation:
pawn Код:
OnGameModeInit()
{
CreateDynamicObject(13638, 674.03735, 1542.92285, 16.64520, 0.00000, 0.00000, 152.26222);
CreateDynamicObject(13638, 669.69196, 1558.48206, 8.76561, 0.00000, 0.00000, 152.26222);
CreateDynamicObject(13638, 678.45880, 1527.51575, 24.68570, 0.00000, 0.00000, 152.26222);
if(blablabla
{
 blabla;
}
return1;
}
This is right:
pawn Код:
OnGameModeInit()
{
    CreateDynamicObject(13638, 674.03735, 1542.92285, 16.64520, 0.00000, 0.00000, 152.26222);
    CreateDynamicObject(13638, 669.69196, 1558.48206, 8.76561, 0.00000, 0.00000, 152.26222);
    CreateDynamicObject(13638, 678.45880, 1527.51575, 24.68570, 0.00000, 0.00000, 152.26222);
    if(blablabla
    {
        blabla;
    }
    return1;
}

Quote:
Originally Posted by PLAYHARD112
Посмотреть сообщение
TRY TO USE
Код:
#include 	<a_samp>
#pragma tabsize 0
IN YOUR SCRIPT I THINK IT MAY HELP
That will let the compiler ignore the problem, not solve it.
Reply
#4

Ty Guys <3
I'll try it
Reply
#5

Quote:
Originally Posted by PLAYHARD112
Посмотреть сообщение
TRY TO USE
Код:
#include 	<a_samp>
#pragma tabsize 0
IN YOUR SCRIPT I THINK IT MAY HELP
Hahahaha, are you damn kidding?

This s*** don't help, it makes the compiler ignore the indentaion. But the the problem will still excist. Use correct identation instead of that.

And read the forumrules. You will see something related to this there..
Reply
#6


Reply
#7

6009 is the line where you need to start using the correct identation. XD
Reply
#8

Can u fix it to me by team viewer please?
Reply
#9

Use the tabulator for the line 6017 + following. Till all this lines are same idented. Or goto ****** and search for this s***.
Reply
#10

Thanks guys <3
I fix it by type
Quote:

#pragma tabsize 0

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)