Invalid Function
#2

Post the FULL functions perhaps... Also use [ pawn ] [ /pawn ].
About the loose indentation, the problem is that your code isn't placed right ( to left or right ), for example:
pawn Код:
//Wrong
if( !strcmp( cmdtext, "/lol", true ) )
{
  if( !strcmp( cmdtext[ 4 ], "rofl", true ) )
    {
  SendClientMessage( playerid, -1, "Your param is 'rofl'." );
  }
return 1;
}
pawn Код:
//Correct
if( !strcmp( cmdtext, "/lol", true ) )
{
    if( !strcmp( cmdtext[ 4 ], "rofl", true ) )
    {
        SendClientMessage( playerid, -1, "Your param is 'rofl'." );
    }
    return 1;
}
So you must indent your code using the TAB key. 1 tab = 4 spaces.

EDIT:
You can review this tutorial I just wrote.
Reply


Messages In This Thread
Invalid Function - by berz - 23.05.2011, 08:17
Re: Invalid Function - by Mean - 23.05.2011, 08:32

Forum Jump:


Users browsing this thread: 3 Guest(s)