Problem With 2 Code`s
#1

Hello,
I have 2 problems with code
the same error
first code:

Код:
	CreateObject(8040, 3905.3521, -1608.9139, 1441.4025, 0.0000, 0.0000, 180.4818); // skroad
	CreateObject(8417, 784.6934, -2047.0616, 57.7101, 0.0000, 0.0000, 0.0000); // tube
	CreateObject(18450, 1029.493530, 2787.852295,1066.784424, 0.0000, 0.0000,  0.0000); //WayToDeath
	
//aa
CreateObject(1634, 436.426575, 2496.279297, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 443.051819, 2496.285645, 22.960884, 33.5180, 0.0000, 270.0000);
CreateObject(1634, 436.426575, 2516.279297, 16.781693, 0.0000, 0.0000, 270.0000);
CreateObject(1634, 443.101807, 2516.255859, 22.960884, 33.5180, 0.0000, 270.0000);
CreateObject(1634, 446.425262, 2496.291748, 31.460484, 52.4256, 0.0000, 270.0000);
CreateObject(1634, 446.475250, 2516.266846, 31.460484, 52.4256, 0.0000, 270.0000);
That is 3380 Till 3390 With Warning: C:\Users\Drowzz\Desktop\Server\gamemodes\freeroam. pwn(3884) : warning 217: loose indentation


And Second:

Код:
//--------------------------
	languageMenu = CreateMenu("Language", 1, 20.0, 150.0, 200.0);
	AddMenuItem(languageMenu, 0, "English");
	AddMenuItem(languageMenu, 0, "Nederlands");
3838 Till 3841 With Warning: C:\Users\Drowzz\Desktop\Server\gamemodes\freeroam. pwn(3839) : warning 217: loose indentation


What to do now? MY stunts aren't working @ my server
So help me please
Reply
#2

pawn Код:
#pragma tabsize 0
at top of your script.


To explain:

pawn Код:
Hmm
Hmm
 Hmm
Hmm
=> Warning

pawn Код:
Hmm
Hmm
Hmm
Hmm
=> No warning


But the given pragma will ignore it.
Reply
#3

Remove the unneeded spaces ?
Reply
#4

Quote:
Originally Posted by Jeffry
pawn Код:
#pragma tabsize 0
at top of your script.
Don't do that.
Reply
#5

Quote:
Originally Posted by Adil_Rahoo
Quote:
Originally Posted by Jeffry
pawn Код:
#pragma tabsize 0
at top of your script.
Don't do that.
Why?
Reply
#6

Quote:
Originally Posted by Jeffry
Quote:
Originally Posted by Adil_Rahoo
Quote:
Originally Posted by Jeffry
pawn Код:
#pragma tabsize 0
at top of your script.
Don't do that.
Why?
Because it doesn't fix the problem, just allows you to write messy code.
Reply
#7

Lol, look at my sig.

Those aren't errors and they shouldn't cause a problem, since the compiler sees everything as being on one line anyway, it's just the compiler's way of telling you that you're lazy :P

Just indent those line once, like this:
pawn Код:
CreateVehicle(...
CreateVehicle(...
CreateVehicle(...
CreateVehicle(...
to
pawn Код:
CreateVehicle(...
    CreateVehicle(...
    CreateVehicle(...
    CreateVehicle(...
Reply
#8

Yes.. I did it
But now im with the problem of this:

http://forum.sa-mp.com/index.php?topic=166997.0

Help Please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)