При компиляции вот что пишет.
Quote
/home/groups/sourcemod/upload_tmp/phpo9RHuh.sp(18) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpo9RHuh.sp(26) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpo9RHuh.sp(28) : warning 217: loose indentation
/home/groups/sourcemod/upload_tmp/phpo9RHuh.sp(30) : error 021: symbol already defined: "ClientCommand"
Code
#include <sourcemod>
#include <cstrike>
public OnPluginStart()
{
AddCommandListener(ChooseTeam, "jointeam");
}
public Action:ChooseTeam(client, const String:command[], args)
{
if (client == 0)
return Plugin_Continue;
decl String:teamString[3];
GetCmdArg(1, teamString, sizeof(teamString));
new Target_Team = StringToInt(teamString);
if (Target_Team == 0)
{
return Plugin_Handled;
}
if (Target_Team == 2 && GetClientTeam(client) == 1)
{
CS_SwitchTeam(client, CS_TEAM_T)
return Plugin_Handled;
}
return Plugin_Continue;
}
ClientCommand(client, "buttons/button11.wav"(teamString);
PrintToChat(client, "\x03[nJoin] \x04Автовыбор отключен, нажми 1 или 2!"(teamString);
}
Вот код. Я 1 час потратил и так не смог исправить ошибку