[AJUDA] Comando Killerid -
Lipe_Stronda - 11.08.2011
Bom quando eu boto esse comando que vou postar abaixo, da montao de erros nao sei se ta faltando Chaves mais alguem pode me ajudar?
pawn Код:
////////////////////////////////////////////////////////////////////////////////
if((Matou[killerid] >= 0) && (Matou[killerid] <= 5)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Amador",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 18, Policia); //
} //
if((Matou[killerid] >= 6) && (Matou[killerid] <= 10)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia); //
} //
if((Matou[killerid] >= 11) && (Matou[killerid] <= 20)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia); //
} //
if((Matou[killerid] >= 0) && (Matou[killerid] <= 5)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 18, Ladrao); //
} //
if((Matou[killerid] >= 6) && (Matou[killerid] <= 10)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 33, Ladrao); //
if((Matou[killerid] >= 11) && (Matou[killerid] <= 20)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia); //
Re: [AJUDA] Comando Killerid -
Ricop522 - 11.08.2011
Vocк colocou ele no OnPlayerDeath ?
Re: [AJUDA] Comando Killerid -
Lipe_Stronda - 11.08.2011
Claro.
Re: [AJUDA] Comando Killerid -
Lipe_Stronda - 11.08.2011
Malz double mais tipo
ta dando erros de playerid e cmdtext
public OnPlayerDeath(playerid, killerid, reason) nгo tem playerid e agora?
Re: [AJUDA] Comando Killerid -
Kuddy - 11.08.2011
pawn Код:
////////////////////////////////////////////////////////////////////////////////
if((Matou[killerid] >= 0) && (Matou[killerid] <= 5)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Amador",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 18, Policia); //
} //
if((Matou[killerid] >= 6) && (Matou[killerid] <= 10)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia); //
} //
if((Matou[killerid] >= 11) && (Matou[killerid] <= 20)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia); //
} //
if((Matou[killerid] >= 0) && (Matou[killerid] <= 5)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 18, Ladrao); //
} //
if((Matou[killerid] >= 6) && (Matou[killerid] <= 10)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 33, Ladrao); //
}// Arrumei essa chave
if((Matou[killerid] >= 11) && (Matou[killerid] <= 20)) //
{ //////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); //////////////
GivePlayerWeapon(playerid, 33, Policia);
} // Nгo sei se esta parte vocк nгo colocou no code, mas aqui estava faltando uma.
@edited.
Re: [AJUDA] Comando Killerid -
Lipe_Stronda - 11.08.2011
Nгo funfo magnus mais acabei de perceber um erro TRAGICO
if((Matou[killerid] >= 6) && (Matou[killerid] <= 10)) //
{ ////////////////
label[playerid] = Create3DTextLabel("Player Foda",0x008080FF,30.0,40.0,50.0,40.0,0);////
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7); ////////////////
GivePlayerWeapon(playerid, 33, Ladrao); //
}
if((Matou[killerid] >= 11) && (Matou[killerid] <= 20))
Re: [AJUDA] Comando Killerid -
Skoll - 11.08.2011
manda o log do erro, assim fica melhor ajudar;
Re: [AJUDA] Comando Killerid -
Lipe_Stronda - 11.08.2011
jб foi resolvido
Re: [AJUDA] Comando Killerid -
Joao_VS - 11.08.2011
Lipe pra nгo fazer Duble use @EDIT.