04.12.2012, 21:57
pawn Код:
C:\Users\Banga\Desktop\Brasil Optimised Life\pawno\include\OptimisedLife\Comandos.pwn(11424) : warning 208: function with tag result used before definition, forcing reparse
Linha:
pawn Код:
CMD:Demitir(playerid, params[])
{
new para1;
new result[64];
if(sscanf(params, "rs[64]", para1, result)) return SendClientMessage(playerid, COLOR_GRAD2, "Digite: /demitir [id/nome] [motivo]");
if(PlayerInfo[playerid][pLider] > 0 || PlayerInfo[playerid][pCargo] == 5)
{
new lolz = GetPlayerOrg(playerid);
if(PlayerInfo[para1][pMembro] != lolz)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode demitir quem nгo й da sua org.");
return 1;
}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(PlayerInfo[para1][pMembro] > 0)
{
GetPlayerName(para1, OutroNome, sizeof(OutroNome));
GetPlayerName(playerid, Nome, sizeof(Nome));
DemitirInfoOrg(PlayerName(para1));
format(STR, sizeof(STR), "Vocк foi demitido pelo lнder %s Motivo: %s.", Nome, (result));
SendClientMessage(para1, COLOR_LIGHTBLUE, STR);
SendClientMessage(para1, COLOR_LIGHTBLUE, "Agora vocк й um civil novamente.");
gTeam[para1] = 3;
PlayerInfo[para1][pTeam] = 3;
PlayerInfo[para1][pMembro] = 0;
PlayerInfo[para1][pCargo] = 0;
if(PlayerInfo[para1][pSex] == 1) { PlayerInfo[para1][pSkin] = 23; } else { PlayerInfo[para1][pSkin] = 216; }
SetSpawnInfo(para1, gTeam[para1], PlayerInfo[para1][pSkin], 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0);
MedicBill[para1] = 0;
SpawnPlayer(para1);
format(STR, sizeof(STR), "Vocк demitiu %s, Motivo: %s.", OutroNome, result);
SendClientMessage(playerid, COLOR_LIGHTBLUE, STR);
return 1;
}
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um lнder ou sublнder !");
}
return 1;
}