[Help] Warning with megaslap.
#1

(629) : warning 217: loose indentation


On this:
Код:
	case 16://megaslap
                              {
628                              SetPlayerPos(ChosenPlayer[playerid],PX,PY,PZ+10);
629                format(string,128,"Admin %s Megaslapped %s",pName,ClickedPlayerName);
630				SendClientMessageToAll(0xFFFFFF,string);
* Duck slaps does work: around a bit with a large trout.

Код:
	case 3://slap
			{
				SetPlayerPos(ChosenPlayer[playerid],PX,PY,PZ+10);
                format(string,128,"Admin %s Slapped %s",pName,ClickedPlayerName);
				SendClientMessageToAll(0xFFFFFF,string);
Reply
#2

Just organize your code using TAB in your keyboard.

Or, put in the top of your GameMode:

pawn Код:
#pragma tabsize 0
I hope that i have helped
Reply
#3

Loose indenation doesn't mean much. Also, /megaslap won't do anything different then /slap. You need to increase the +10 at the end of the third line.
Reply
#4

My bad, thanks for the help; It worked
And I know about the +10.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)