[Ajuda] Como Arrumo Esses Erros?
#1

Code:
static ContarPlayers;

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/comboio", true) == 0)
	{
		for(new i = 0; i <  ContarPlayers; i++)
		{
			if(ContarPlayers >= 2 )
			{
				ContarPlayers ++;

				SendClientMessage(playerid, -1, "O Comboio ja pode ser iniciado!");
			}
			else
			{
				SendClientMessage(playerid, -1, "O comboio nгo pode ser iniciado, chame amigos.");
				ContarPlayers ++;
			}
			break;
  		}
		for (new i; i <MAX_CONVOYS; i++)
		{
			if (AConvoys[i][Status] == CONVOY_EMPTY)
			{
				NumMembers = 0;
				format(Name, 24, "Nenhum");
				format(ConvoyStatus, 10, "Vazio");
			}
			else
			{
				GetPlayerName(AConvoys[i][Members][0], Name, sizeof(Name));

				NumMembers = Convoy_CountMembers(i);

				switch (AConvoys[i][Status])
				{
					case CONVOY_OPEN: format(ConvoyStatus, 10, "Aberto");
					case CONVOY_FULL: format(ConvoyStatus, 10, "Completo");
					case CONVOY_CLOSED: format(ConvoyStatus, 10, "Fechado");
				}
			}
			format(ConvoyList, sizeof(ConvoyList), "%sLнder: {FFFF00}%s, membros: %i, Status: %s\n", ConvoyList, Name, NumMembers, ConvoyStatus);
		}
		ShowPlayerDialog(playerid, DialogSelectConvoy, DIALOG_STYLE_LIST, "Selecione um convoy:", ConvoyList, "Selecionar", "Cancelar");
	 }
	 else
     return 0;
    	default: SendClientMessage(playerid, 0xFF0000FF, "{FF0000}| {33AA33}ERRO {FF0000}| {FFFFFF}Vocк estб a pй ou nгo estб no veнculo apropriado para o convoy!");
	}
	return 1;
}
	if(strcmp(cmdtext, "/saircomboio", true) == 0)
	{
		ContarPlayers --;
		return 1;
		}
return 0;
}
ERROS: ///////////////////////////////////////////////
Code:
Convoys.inc(245) : error 017: undefined symbol "APlayerData"
Convoys.inc(245) : warning 215: expression has no effect
Convoys.inc(245) : error 001: expected token: ";", but found "]"
Convoys.inc(245) : error 029: invalid expression, assumed zero
Convoys.inc(245) : fatal error 107: too many error messages on one line
Reply
#2

Esse sistema precisa ser adaptado de acordo com as suas variбveis.
Reply
#3

Companheiro onde estб?
APlayerData
Nesse codigo
Reply
#4

Vocк sу copiou e colou no gamemode..
Reply
#5

error 017: undefined symbol "APlayerData" - variбvel nгo definida
error 001: expected token: ";", but found "]" - falta ponto e vнrgula (.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)