23.05.2011, 08:32
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:
So you must indent your code using the TAB key. 1 tab = 4 spaces.
EDIT:
You can review this tutorial I just wrote.
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;
}
EDIT:
You can review this tutorial I just wrote.