Quote:
Originally Posted by SaraAki
I forget to show this errors:
amx_warmup_pro.sma(214) : warning 201:
redefinition of constant/macro (symbol "CsTeams")
amx_warmup_pro.sma(223) : warning 201:
redefinition of constant/macro (symbol "CsArmorType")
|
These aren't errors. They're warnings. They show you that you're trying to define something that has already been defined in one of your includes most likely. The plugin will very likely run with them as well. But if you want to fix them just comment or delete:
PHP Code:
enum CsTeams
{
CS_TEAM_UNASSIGNED = 0,
CS_TEAM_T = 1,
CS_TEAM_CT = 2,
CS_TEAM_SPECTATOR = 3
};
enum CsArmorType
{
CS_ARMOR_NONE = 0,
CS_ARMOR_KEVLAR = 1,
CS_ARMOR_VESTHELM = 2
};
As for
PHP Code:
stock CsTeams:fm_get_user_team(id, &{CS_Internal_Models,_}:model = CS_DONTCHANGE)
{
model = CS_Internal_Models:get_pdata_int(id, OFFSET_INTERNALMODEL); //This is line 410
return CsTeams:get_pdata_int(id, OFFSET_TEAM); //This is line 412
}
You can either delete it entirely and replace all fm_get_user_team with just get_user_team or:
PHP Code:
stock CsTeams:fm_get_user_team(id)
{
return CsTeams:get_pdata_int(id, OFFSET_TEAM);
}