Sending wrong messages - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sending wrong messages (
/showthread.php?tid=632761)
Sending wrong messages -
danielpalade - 18.04.2017
-- DELETED --
Re: Sending wrong messages -
LazzyBoy - 18.04.2017
Код:
stock SendFootballMessage(team[], color, string[])
{
foreach(new i : Player)
{
if(team == pInfo[i][pTeamBet]) SCM(i,color,string);
}
return 1;
}
Re: Sending wrong messages -
danielpalade - 18.04.2017
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")"
Re: Sending wrong messages -
LazzyBoy - 18.04.2017
Код:
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.
Re: Sending wrong messages -
danielpalade - 18.04.2017
Already fixed it. It was some problem with my variable where the name of the team was stored.