SA-MP Forums Archive
i have no idea :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: i have no idea :S (/showthread.php?tid=200900)



i have no idea :S - paramedic114 - 19.12.2010

Hi,

i was making a command to Disable /department radio in my server, when i got to the bit where when its disabled it prevents the person from using it i get this error:
Код:
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(19162) : warning 217: loose indentation
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(19167) : warning 217: loose indentation
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.

Here are the lines:
Код:
19160:			return 1;
19161:			}
19162:			if((nod) && PlayerInfo[playerid][pAdmin] < 3)
19163:			{
19164:				SendClientMessage(playerid, COLOR_GREY, "   Department channel has been disabled by an Admin !");
19165:				return 1;
19166:			}
19167:		return 1;
19168:	}
I cant see no error in it.....Yet, all help appreciated


Re: i have no idea :S - akis_tze - 19.12.2010

under #include <a_samp>
add this
#pragma tabsize 0


Re: i have no idea :S - WillyP - 19.12.2010

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
under #include <a_samp>
add this
#pragma tabsize 0
pawn Код:
#pragma tabsize 0
is for noobs who can't indent correctly.


Re: i have no idea :S - Face9000 - 19.12.2010

pawn Код:
#pragma tabsize 0
At the top of the GameMode.

BTW Are warning,u can simply ignore them but if dont want again that warning,use the code that i listed u above.


Re: i have no idea :S - akis_tze - 19.12.2010

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
pawn Код:
#pragma tabsize 0
is for noobs who can't indent correctly.
You think that i can't indent correctly??


Re: i have no idea :S - Face9000 - 19.12.2010

Quote:
Originally Posted by akis_tze
Посмотреть сообщение
You think that i can't indent correctly??
He was talking about the tabsize,not about you.


Re: i have no idea :S - paramedic114 - 19.12.2010

Код:
#pragma tabsize 0
that just hides the warning/error


Re: i have no idea :S - WillyP - 19.12.2010

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
pawn Код:
#pragma tabsize 0
At the top of the GameMode.

BTW Are warning,u can simply ignore them but if dont want again that warning,use the code that i listed u above.
lrn2read? Another person already said that.


Quote:
Originally Posted by akis_tze
Посмотреть сообщение
You think that i can't indent correctly??
No.. I said it's for noobs who use it, but you must be guilty of being a noob, if you just asked if I was talking to you.


Re: i have no idea :S - akis_tze - 19.12.2010

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
No.. I said it's for noobs who use it, but you must be guilty of being a noob, if you just asked if I was talking to you.
Is not everyone perfect like you


Re: i have no idea :S - Face9000 - 19.12.2010

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
lrn2read? Another person already said that.
Umh so?It's a championship?If i can help,i answer.