1) Those are not errors, those are warnings. You should be able to ignore them.
2) You have posted in the Sourcemod section, but appear to be working on an AMX MOD X plugin.
3) Loose indentation just means that you are using inconsistent indentation at the beginning of your lines. You can safely ignore these warnings, or preferably fix them by using a more consistent indentation style. FOR EXAMPLE:
This is an example of a plugin that is indented consistently:
PHP Code:
#include <sourcemod>
#include <sdktools>
public Plugin:myinfo =
{
name = "My First Plugin",
author = "Me",
description = "My first plugin ever",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
}
public OnPluginStart()
{
RegAdminCmd("sm_myslap", Command_MySlap, ADMFLAG_SLAY);
}
public Action:Command_MySlap(client, args)
{
new String:arg1[32], String:arg2[32];
new damage;
/* Get the first argument */
GetCmdArg(1, arg1, sizeof(arg1));
/* If there are 2 or more arguments, and the second argument fetch
* is successful, convert it to an integer.
*/
if (args >= 2 && GetCmdArg(2, arg2, sizeof(arg2)))
{
damage = StringToInt(arg2);
}
/* Try and find a matching player */
new target = FindTarget(client, arg1);
if (target == -1)
{
/* FindTarget() automatically replies with the
* failure reason.
*/
return Plugin_Handled;
}
SlapPlayer(target, damage);
new String:name[MAX_NAME_LENGTH];
GetClientName(target, name, sizeof(name));
ReplyToCommand(client, "[SM] You slapped %s for %d damage!", name, damage);
return Plugin_Handled;
}
And this is that same plugin, but indented inconsistently. Note that, after compiling, the two plugins are IDENTICAL.
PHP Code:
#include <sourcemod>
#include <sdktools>
public Plugin:myinfo =
{
name = "My First Plugin",
author = "Me",
description = "My first plugin ever",
version = "1.0.0.0",
url = "http://www.sourcemod.net/"
}
public OnPluginStart()
{
RegAdminCmd("sm_myslap", Command_MySlap, ADMFLAG_SLAY);
}
public Action:Command_MySlap(client, args)
{
new String:arg1[32], String:arg2[32];
new damage;
/* Get the first argument */
GetCmdArg(1, arg1, sizeof(arg1));
/* If there are 2 or more arguments, and the second argument fetch
* is successful, convert it to an integer.
*/
if (args >= 2 && GetCmdArg(2, arg2, sizeof(arg2)))
{
damage = StringToInt(arg2);
}
/* Try and find a matching player */
new target = FindTarget(client, arg1);
if (target == -1)
{
/* FindTarget() automatically replies with the
* failure reason.
*/
return Plugin_Handled;
}
SlapPlayer(target, damage);
new String:name[MAX_NAME_LENGTH];
GetClientName(target, name, sizeof(name));
ReplyToCommand(client, "[SM] You slapped %s for %d damage!", name, damage);
return Plugin_Handled;
}
__________________