Code
Float:GetTeamCountj(Float:Terrorist, Float:Counter)
{
for (new i = 1; i <= MaxClients; i++)
{
if(GetClientTeam(i) == 2)
{
Terrorist + 1.0;
}
if(GetClientTeam(i) == 3)
{
Counter + 1.0;
}
return Terrorist / Counter
}
return Counter
}
Добавлено (29.03.2012, 08:38:28)
---------------------------------------------
Проверял так
Code
new Float:Terrorist, Float:Counter
PrintToChatAll("%f", GetTeamCountj(Terrorist, Counter));