[Ajuda] Erro switch
#1

Estou tentando fazer sу que dar erro

Код:
forward InicioCorrida();


public InicioCorrida()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
case:1
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "5", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
case:2
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "4", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
case:3
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "4", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
case:4
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "3", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
case:5
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "2", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
case:6
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "1", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
case:7
{
if(correndo[i] == 1)
{
GameTextForPlayer(i, "GO", 1001, 5);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
}
SetTimer("InicioCorrida3", 1000, false);
}
}
}
}
Reply


Messages In This Thread
Erro switch - by Marllun - 01.11.2017, 22:35
Re: Erro switch - by C4rtm4n - 01.11.2017, 23:00
Re: Erro switch - by DelK - 01.11.2017, 23:16
Re: Erro switch - by IlanZ - 02.11.2017, 00:46
Re: Erro switch - by MrEdu - 02.11.2017, 01:31
Re: Erro switch - by Marllun - 02.11.2017, 02:11

Forum Jump:


Users browsing this thread: 1 Guest(s)