Onplayerdesconect Warning -
zGuigui2068 - 02.04.2016
pediu isso aq
pawn Код:
if(PlayerInfo[killerid][pHeadValue] > 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLider] == 8 || PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 24 || PlayerInfo[playerid][pMembro] == 24)
{
if(GoChase[playerid] == killerid)
{
ConsumingMoney[playerid] = 1;
format(string, sizeof(string), "<< [%s] Assassino %s foi morto por %s e perdeu o contrato >>",NomeORG(playerid), PlayerName(playerid),PlayerName(killerid));
SendFamilyMessage(PlayerInfo[playerid][pMembro], COLOR_YELLOW, string);
PlayerInfo[killerid][pHeadValue] = 0;
GotHit[killerid] = 0;
GetChased[killerid] = 999;
GoChase[playerid] = 999;
}
}
}
}
killerid = INVALID_PLAYER_ID;
ShowGz(playerid);
}
}
C:\Users\Gustavo\Desktop\BSR GM OF - Cуpia\BSR GM OF - Cуpia\Gamemodes\BSR.pwn(11562) : warning 209: function "OnPlayerDeath" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 14348 bytes
Code size: 3366628 bytes
Data size: 3116864 bytes
Stack/heap size: 16384 bytes; estimated max. usage=6990 cells (27960 bytes)
Total requirements: 6514224 bytes
1 Warning.
Re: Onplayerdesconect Warning -
SkullFire - 02.04.2016
return 1; no final
Re: Onplayerdesconect Warning -
zGuigui2068 - 02.04.2016
Vlw
pawn Код:
if(dialogid == 5566)
{
if(response)
{
//Sim Sera Punido
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Escolheu SIM, O Acusado Continuara a Puniзгo, /detentos");
// format(string, sizeof(string), "A Vitima %s Confirma que Vocк Cometeu um Erro, Vocк Continuara Punido, /detentos", Nome(playerid));
// SendClientMessage(OAcusado[playerid], COLOR_LIGHTBLUE, string);
OAcusado[playerid] = 999;
return 1;
}
if(!response)
{
//Nгo Sera Solto
if(PlayerInfo[OAcusado[playerid]][pJailed] > 0)
{
if(PlayerInfo[OAcusado[playerid]][pJailTime] > 0)
{
PlayerInfo[OAcusado[playerid]][pJailTime] = 5;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Escolheu NВO, O Acusado Sera Livre da Puniзгo!");
//format(string, sizeof(string), "A Vitima %s Confirmou que Vocк Foi Punido Injustamente, Vocк Sera Libertado em Segundos!", Nome(playerid));
//SendClientMessage(OAcusado[playerid], COLOR_LIGHTBLUE, string);
OAcusado[playerid] = 999;
return 1;
}
}
}
return 1;
}
olha isso da 26 erros e eu ja tentei de tudo se alguem conseguir mecher nessas chaves
Re: Onplayerdesconect Warning -
SkyneTSAMP - 02.04.2016
Tenta:
pawn Код:
if(dialogid == 5566)
{
if(response)
{
//Sim Sera Punido
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Escolheu SIM, O Acusado Continuara a Puniзгo, /detentos");
// format(string, sizeof(string), "A Vitima %s Confirma que Vocк Cometeu um Erro, Vocк Continuara Punido, /detentos", Nome(playerid));
// SendClientMessage(OAcusado[playerid], COLOR_LIGHTBLUE, string);
OAcusado[playerid] = 999;
return 1;
}
if(!response)
{
//Nгo Sera Solto
if(PlayerInfo[OAcusado[playerid]][pJailed] > 0)
{
if(PlayerInfo[OAcusado[playerid]][pJailTime] > 0)
{
PlayerInfo[OAcusado[playerid]][pJailTime] = 5;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк Escolheu NВO, O Acusado Sera Livre da Puniзгo!");
//format(string, sizeof(string), "A Vitima %s Confirmou que Vocк Foi Punido Injustamente, Vocк Sera Libertado em Segundos!", Nome(playerid));
//SendClientMessage(OAcusado[playerid], COLOR_LIGHTBLUE, string);
OAcusado[playerid] = 999;
return 1;
}
}
}
return 1;
}
!