SA-MP Forums Archive
Problem With 2 Code`s - 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: Problem With 2 Code`s (/showthread.php?tid=141649)



Problem With 2 Code`s - Drowzz - 14.04.2010

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


Re: Problem With 2 Code`s - Jeffry - 14.04.2010

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.


Re: Problem With 2 Code`s - Adil - 14.04.2010

Remove the unneeded spaces ?


Re: Problem With 2 Code`s - Adil - 14.04.2010

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


Re: Problem With 2 Code`s - Jeffry - 14.04.2010

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?


Re: Problem With 2 Code`s - pagie1111 - 14.04.2010

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.


Re: Problem With 2 Code`s - biltong - 14.04.2010

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(...



Re: Problem With 2 Code`s - Drowzz - 14.04.2010

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

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

Help Please?