28.03.2016, 21:53
Estou com as seguintes warnings no gm
Cуdigo linha 362 :
Alguem pode me ajudar ? e.e
Quote:
C:\Users\usuario\Downloads\samp037_svr_R2-1-1_win32\gamemodes\que.pwn(362) : warning 213: tag mismatch C:\Users\usuario\Downloads\samp037_svr_R2-1-1_win32\gamemodes\que.pwn(425) : warning 217: loose indentation C:\Users\usuario\Downloads\samp037_svr_R2-1-1_win32\gamemodes\que.pwn(427) : warning 217: loose indentation C:\Users\usuario\Downloads\samp037_svr_R2-1-1_win32\gamemodes\que.pwn(54 : warning 217: loose indentation |
PHP код:
if(sscanf(params, "dd", PlayerB, Cargo)) return SendClientMessage(playerid, 0x1E90FF99, "Uso correto: /Promover [id] [cargo]");
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 100 && response) //100 й o ID do dialog que usamos no ShowPlayerDialog do comando /convidar. Response й a resposta ao primeiro botгo do dialog, no caso, "Sim".
{
ProgressaoInfo[playerid][Membro] = GetPVarInt(playerid, "OrgConvidado"); //Setaremos a org do player = a org setada no PVar dele, que й a mesma do player que o convidou.
ProgressaoInfo[playerid][Cargo] = 1; //Setaremos o cargo do player para 1 afinal ele acabou de entrar na nova organizaзгo.
DeletePVar(playerid, "OrgConvidado"); //Deletaremos a PVar que usamos no comando /convidar.
}
return 1; // Esta dando loose indentation aqui(linha 548)
}
PHP код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER) //O novo estado do player й de motorista.
{
if(VDaOrg(VCivil,0,2)) SendClientMessage(playerid, C_Civil, "Vocк entrou em um veнculo Civil");
if(VDaOrg(VHitmans,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Hitmans, "Vocк nгo й dos Hitmans");
if(VDaOrg(VTriads,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Triads, "Vocк nгo й da Triads");
if(VDaOrg(VDrifters,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Drifters, "Vocк nгo й dos Drifters");
if(VDaOrg(VCNostra,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_CNostra, "Vocк nгo й da Cosa Nostra");
if(VDaOrg(VTaliban,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Taliban, "Vocк nгo й do Taliban");
if(VDaOrg(VMYakuza,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_MYakuza, "Vocк nгo й da Mafia Yakuza");
if(VDaOrg(VPCivil,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_PCivil, "Vocк nгo й da Policia Civil");
if(VDaOrg(VPMilitar,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_PMilitar, "Vocк nгo й da Policia Militar");
if(VDaOrg(VBOPE,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_BOPE, "Vocк nгo й do BOPE");
if(VDaOrg(VAlQaeda,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_AlQaeda, "Vocк nгo й da AlQaeda");
if(VDaOrg(VSOAnarchy,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_SOAnarchy, "Vocк nгo й dos Sons of Anarchy");
if(VDaOrg(VLMCs,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_LMCs, "Vocк nгo й do Lost MCs");
if(VDaOrg(VLowriders,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Lowriders, "Vocк nгo й dos Lowriders");
if(VDaOrg(VGStreet,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_GStreet, "Vocк nгo й da Groove Street");
if(VDaOrg(VBallas,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Ballas, "Vocк nгo й dos Ballas");
if(VDaOrg(VLAztecas,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_LAztecas, "Vocк nгo й dos Los Aztecas");
if(VDaOrg(VLVagos,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_LVagos, "Vocк nгo й dos Los Santos Vagos");
if(VDaOrg(VPFederal,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_PFederal, "Vocк nгo й um Policial Federal");
if(VDaOrg(VExercito,0,2) && ProgressaoInfo[playerid][Membro] != 2) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, C_Exercito, "Vocк nгo й do Exercito");
return true; //loose indentation aqui(linha 425)
}
return 1; // loose indentation aqui(linha 427)
}