29.11.2013, 06:53
SOLVED! Thanks!
stock CounterRadio(const string[])
{
foreach(Player, i)
{
if(GetPlayerState(i) != PLAYER_STATE_NONE)
{
if(GetPlayerClass[i] == TEAM_COUNTER)
{
SendClientMessage(i, BLUE, string);
}
}
}
return 1;
}
#include <foreach>
stock CounterRadio(const string[])
{
foreach(Player, i)
{
if(GetPlayerState(i) != PLAYER_STATE_NONE)
{
if(GetPlayerClass[i] == TEAM_COUNTER)
{
SendClientMessage(i, BLUE, string);
}
}
}
return true;
}
Do you have foreach include and it is defined before a_samp include? Also, the code must be like this:
pawn Код:
|