[Ajuda] error 017: undefined symbol "i"
#1

Linhas de Erro
Quote:

if(GetPlayerOrg(playerid) == 3 || GetPlayerOrg(playerid) == 15 || GetPlayerOrg(playerid) == 23)
{
if(TendoGuerra >= 1 && IsPlayerInGuerra(playerid) && EmGuerra[playerid] == 0)
{
new GuerraString[256];
TextDrawShowForPlayer(i, BoxGuerra[i]);
TextDrawShowForPlayer(i, TextGuerra[i]);
format(string, sizeof(string), "* %s entrou na zona de Guerra!",PlayerName(playerid));
format(string,sizeof(string),"Pontuacao ~r~Guerra~n~~n~~g~Exercito~r~~n~Pontos: ~w~%d~n~~n~~y~ASFARC~r~~n~Pontos: ~w~%d~n~~n~~w~Guerrilheiros Isaelitas~r~~n~Pontos: ~w~%d",Territorio[almortos], Territorio[exemortos],Territorio[GImortos]);
TextDrawSetString(TextGuerra[i], GuerraString);
SendFamilyMessage(3,GetPlayerColor(playerid), string);
SendFamilyMessage(15,GetPlayerColor(playerid), string);
SendFamilyMessage(23,GetPlayerColor(playerid), string);
EmGuerra[playerid] = 1;
}

Reply
#2

Troca

pawn Код:
TextDrawShowForPlayer(i, BoxGuerra[i]);
TextDrawShowForPlayer(i, TextGuerra[i]);
TextDrawSetString(TextGuerra[i], GuerraString);
Por

pawn Код:
TextDrawShowForPlayer(playerid, BoxGuerra[playerid]);
TextDrawShowForPlayer(playerid, TextGuerra[playerid]);
TextDrawSetString(TextGuerra[playerid], GuerraString);
Reply
#3

pawn Код:
if(GetPlayerOrg(playerid) == 3 || GetPlayerOrg(playerid) == 6 || GetPlayerOrg(playerid) == 15 || GetPlayerOrg(playerid) == 23)
{
if(TendoGuerra >= 1 && IsPlayerInGuerra(playerid) && EmGuerra[playerid] == 0)
{
new GuerraString[256];
TextDrawShowForPlayer(playerid, BoxGuerra[playerid]);
TextDrawShowForPlayer(playerid, TextGuerra[playerid]);
format(string, sizeof(string), "* %s entrou na zona de Guerra!",PlayerName(playerid));
format(string,sizeof(string),"Pontuacao ~r~Guerra~n~~n~~g~Exercito~r~~n~Pontos: ~w~%d~n~~n~~y~ASFARC~r~~n~Pontos: ~w~%d~n~~n~~w~Guerrilheiros Isaelitas~r~~n~Pontos: ~w~%d",Territorio[almortos], Territorio[exemortos],Territorio[GImortos]);
TextDrawSetString(TextGuerra[playerid], GuerraString);
SendFamilyMessage(3,GetPlayerColor(playerid), string);
SendFamilyMessage(6,GetPlayerColor(playerid), string);
SendFamilyMessage(15,GetPlayerColor(playerid), string);
SendFamilyMessage(23,GetPlayerColor(playerid), string);
EmGuerra[playerid] = 1;
}
Edit: Maldito Cidiei, mal posso ver seus movimentos.
Reply
#4

Quote:
Originally Posted by VSxD
Посмотреть сообщение
Linhas de Erro
Ou dos amigos a cima, ou assim:
pawn Код:
if(GetPlayerOrg(playerid) == 3 || GetPlayerOrg(playerid) == 6 || GetPlayerOrg(playerid) == 15 || GetPlayerOrg(playerid) == 23)
{
if(TendoGuerra >= 1 && IsPlayerInGuerra(playerid) && EmGuerra[playerid] == 0)
{
new GuerraString[256];
for(new i; i < MAX_PLAYERS; i++)
{
TextDrawShowForPlayer(i, BoxGuerra[i]);
TextDrawShowForPlayer(i, TextGuerra[i]);
format(string, sizeof(string), "* %s entrou na zona de Guerra!",PlayerName(playerid));
format(string,sizeof(string),"Pontuacao ~r~Guerra~n~~n~~g~Exercito~r~~n~Pontos: ~w~%d~n~~n~~y~ASFARC~r~~n~Pontos: ~w~%d~n~~n~~w~Guerrilheiros Isaelitas~r~~n~Pontos: ~w~%d",Territorio[almortos], Territorio[exemortos],Territorio[GImortos]);
TextDrawSetString(TextGuerra[i], GuerraString);
}
SendFamilyMessage(3,GetPlayerColor(playerid), string);
SendFamilyMessage(6,GetPlayerColor(playerid), string);
SendFamilyMessage(15,GetPlayerColor(playerid), string);
SendFamilyMessage(23,GetPlayerColor(playerid), string);
EmGuerra[playerid] = 1;
}
Reply
#5

for (new i=0;i<MAX_PLAYERS;i++){

Код:
for (new i=0;i<MAX_PLAYERS;i++){

if(GetPlayerOrg(playerid) == 3 || GetPlayerOrg(playerid) == 15 || GetPlayerOrg(playerid) == 23)

if(TendoGuerra >= 1 && IsPlayerInGuerra(playerid) && EmGuerra[playerid] == 0)
{
new GuerraString[256];
TextDrawShowForPlayer(i, BoxGuerra[i]);
TextDrawShowForPlayer(i, TextGuerra[i]);
format(string, sizeof(string), "* %s entrou na zona de Guerra!",PlayerName(playerid));
format(string,sizeof(string),"Pontuacao ~r~Guerra~n~~n~~g~Exercito~r~~n~Pontos: ~w~%d~n~~n~~y~ASFARC~r~~n~Pontos: ~w~%d~n~~n~~w~Guerrilheiros Isaelitas~r~~n~Pontos: ~w~%d",Territorio[almortos], Territorio[exemortos],Territorio[GImortos]);
TextDrawSetString(TextGuerra[i], GuerraString);
SendFamilyMessage(3,GetPlayerColor(playerid), string);
SendFamilyMessage(15,GetPlayerColor(playerid), string);
SendFamilyMessage(23,GetPlayerColor(playerid), string);
EmGuerra[playerid] = 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)