Sending wrong messages
#1

-- DELETED --
Reply
#2

Код:
stock SendFootballMessage(team[], color, string[])
{
	foreach(new i : Player)
	{
               if(team == pInfo[i][pTeamBet]) SCM(i,color,string);
	}
	return 1;
}
Reply
#3

Quote:
Originally Posted by LazzyBoy
Посмотреть сообщение
Код:
stock SendFootballMessage(team[], color, string[])
{
	foreach(new i : Player)
	{
               if(team == pInfo[i][pTeamBet]) SCM(i,color,string);
	}
	return 1;
}
That wouldn't work. "error 033: array must be indexed (variable "team")"
Reply
#4

Код:
stock SendFootballMessage(team[], color, string[])
{
	foreach(new i : Player)
	{
                if(!strcmp(team, pInfo[i][pTeamBet)) SCM(i,color,string); 
	}
	return 1;
}
test this , should work.
Reply
#5

Already fixed it. It was some problem with my variable where the name of the team was stored.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)