27.03.2016, 11:09
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; }
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