eror cmd -
justinkomnuga - 04.04.2010
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.
Re: eror cmd -
Beaver07 - 04.04.2010
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
Re: eror cmd -
mysql - 04.04.2010
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;
}
Re: eror cmd -
justinkomnuga - 04.04.2010
sorry guyґs a get it
Re: eror cmd -
aircombat - 04.04.2010
add that top of ur script :
Re: eror cmd -
biltong - 04.04.2010
Quote:
Originally Posted by !Vampire!
add that top of ur script :
|
NO! STOP TELLING PEOPLE TO DO THAT!
That only gets rid of the warning, the best alternative is to LEARN TO INDENT!
Re: eror cmd -
aircombat - 04.04.2010
who are u to judge dude , the loose ident warnings are not harmful.......................
Re: eror cmd -
Peter_Corneile - 04.04.2010
Loose indentations are indeed not harmful but learning to indent the codes properly is better than just added tabsize .. Anyways thanks for the help ...
Re: eror cmd -
biltong - 04.04.2010
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?
Re: eror cmd -
aircombat - 04.04.2010
I Do :P