eror cmd
#1

A have a eror, but what is the problem

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cmds", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
return 1;
}

if (strcmp("/rules", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
return 1;
}
return 0;
}
eror:
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(203) : warning 217: loose indentation
C:\DOCUME~1\Londen\BUREAU~1\NIEUWE~1\new.pwn(20 : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Reply
#2

you need to tab the code in line

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/cmds", cmdtext, true, 10) == 0)
  	{
      SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
   	  return 1;
  	}

  	if (strcmp("/rules", cmdtext, true, 10) == 0)
  	{
   	  SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
   	  return 1;
  	}
  	return 0;
}
that should be straight and they are not errors just merely warnings the script will still work/compile
Reply
#3

Try this:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if (strcmp("/cmds", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
   return 1;
  }

  if (strcmp("/rules", cmdtext, true, 10) == 0)
  {
   SendClientMessage(playerid,0xAA3333AA,"Welcome: to Pandora where Army Fighting to the Avatars");
   return 1;
  }
  return 0;
}
Reply
#4

sorry guyґs a get it
Reply
#5

add that top of ur script :

Код:
#pragma tabsize 0
Reply
#6

Quote:
Originally Posted by !Vampire!
add that top of ur script :

Код:
#pragma tabsize 0
NO! STOP TELLING PEOPLE TO DO THAT!

That only gets rid of the warning, the best alternative is to LEARN TO INDENT!
Reply
#7

who are u to judge dude , the loose ident warnings are not harmful.......................
Reply
#8

Loose indentations are indeed not harmful but learning to indent the codes properly is better than just added tabsize .. Anyways thanks for the help ...
Reply
#9

Quote:
Originally Posted by !Vampire!
who are u to judge dude , the loose ident warnings are not harmful.......................
To me it shows you are lazy, and honestly, who wants a lazy programmer?
Reply
#10

I Do :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)