[Ajuda] Erro ao copilar!?!
#4

Melhora essa identaзгo e aprende a fehcar chaves!

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 7)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerMoney(playerid, -250);
                
GivePlayerWeapon(playerid22100);
                
SendClientMessage(playerid0xFFFFFFFF"|INFO| Vocк comprou uma 9mm, com 100 balas, por R$250,00");
            }
            if(
listitem == 1)
            {
                
GivePlayerMoney(playerid, -255);
                
GivePlayerWeapon(playerid23100);
                
SendClientMessage(playerid0xFFFFFFFF"|INFO| Vocк comprou uma 9mm Silenciosa, com 100 balas, por R$255,00");
            }
            if(
listitem == 2)
            {
                
GivePlayerMoney(playerid, -300);
                
GivePlayerWeapon(playerid24100);
                
SendClientMessage(playerid0xFFFFFFFF"|INFO| Vocк comprou uma Desert Eagle, com 100 balas, por R$300,00");
            }
        }
        
        return 
1;
    }
    if(
dialogid == 6)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
                
GivePlayerHealth(playerid10.0);
                
GivePlayerMoney(playerid, -100);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 10% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$100,00");
            }
            if(
listitem == 1)
            {
                
GivePlayerHealth(playerid20.0);
                
GivePlayerMoney(playerid, -200);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 20% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$200,00");
            }
            if(
listitem == 2)
            {
                
GivePlayerHealth(playerid30.0);
                
GivePlayerMoney(playerid, -300);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 30% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$300,00");
            }
            if(
listitem == 3)
            {
                
GivePlayerHealth(playerid40.0);
                
GivePlayerMoney(playerid, -400);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 40% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$400,00");
            }
            if(
listitem == 4)
            {
                
GivePlayerHealth(playerid50.0);
                
GivePlayerMoney(playerid, -500);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 50% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$500,00");
            }
            if(
listitem == 5)
            {
                
GivePlayerHealth(playerid60.0);
                
GivePlayerMoney(playerid, -600);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 60% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$600,00");
            }
            if(
listitem == 6)
            {
                
GivePlayerHealth(playerid70.0);
                
GivePlayerMoney(playerid, -700);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 70% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$700,00");
            }
            if(
listitem == 7)
            {
                
GivePlayerHealth(playerid80.0);
                
GivePlayerMoney(playerid, -800);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 80% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$800,00");
            }
            if(
listitem == 8)
            {
                
GivePlayerHealth(playerid90.0);
                
GivePlayerMoney(playerid, -900);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 90% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$900,00");
            }
            if(
listitem == 9)
            {
                
GivePlayerHealth(playerid100.0);
                
GivePlayerMoney(playerid, -1000);
                
SendClientMessage(playeridCOR_Vida"|INFO| Vocк curou 100% de sua vida.");
                
SendClientMessage(playeridCOR_Vida"|INFO| Custo: R$1,000,00");
            }
        }
        
        return 
1;
    }
    
    return 
0;

Reply


Messages In This Thread
Erro ao copilar!?! - by VictorNascimento - 02.09.2013, 18:33
Re: Erro ao copilar!?! - by mau.tito - 02.09.2013, 18:55
Re: Erro ao copilar!?! - by Cromado - 02.09.2013, 20:51
Re: Erro ao copilar!?! - by Juniiro3 - 02.09.2013, 20:54

Forum Jump:


Users browsing this thread: 1 Guest(s)