[Ajuda] Quantos Veiculos
#5

pawn Код:
/*
                - Fazer debug no gamemode.
                - Para usar coloque esta funзгo na ъtlima linha do gm.
                - depois coloque no final do OnGameModeInit: ExibeDebug();
*/
Coloque
pawn Код:
ExibeDebug();
depois de todas as coisas do gm ( no ONGameModeInit )
exemplo:

pawn Код:
public OnGameModeInit()
{
     // Coisas

     ExibeDebug();
     return 1;
}
Coloque no final:

pawn Код:
stock ExibeDebug()
{
        new
            CAR         = -1,
            GZ          = -1,
            PK          = -1,
            Ob          = -1,
            Text3D:Lb,
            Menu:Mn,
            Text:TD
        ;
 
        CAR      = AddStaticVehicle(568, 0.0,0.0, 0.0, 0.0, -1, -1);                                    DestroyVehicle(CAR);
        GZ   = GangZoneCreate(0.0,0.0,0.0,0.0);                                                         GangZoneDestroy(GZ);
        TD   = TextDrawCreate(240.0,580.0," ");                                                                         TextDrawDestroy(TD);
        PK   = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);            DestroyPickup(PK);
        Ob   = CreateObject(2587, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);               DestroyObject(Ob);
        Mn   = CreateMenu(" ", 2, 200.0, 100.0, 150.0, 150.0);                          DestroyMenu(Mn);
        Lb   = Create3DTextLabel("", -1, 0.0, 0.0, 0.0, 0.0, -1, 0);                Delete3DTextLabel(Lb);
 
        print("||===========[ DEBUG ]=============||");
        printf("|| Carros:      %d",                      CAR);
        printf("|| GangZonas:   %d",                       GZ);
        printf("|| TextDraws:   %d",              _:TD -1);
        printf("|| Pickup's :   %d",                       PK);
        printf("|| Object's :   %d",                       Ob);
        printf("|| Menu's   :   %d",               _:Mn-1);
        printf("|| 3DLabel's:   %d",           _:Lb-1);
        print("||===========[ DEBUG ]=============||");
}
Reply


Messages In This Thread
[Ajuda] Quantos Veiculos - by wallacematheus - 08.11.2011, 00:09
Re: [Ajuda] Quantos Veiculos - by [O.z]Caroline - 08.11.2011, 00:13
Re: [Ajuda] Quantos Veiculos - by wallacematheus - 08.11.2011, 00:20
Re: [Ajuda] Quantos Veiculos - by Ricop522 - 08.11.2011, 11:29
Re: [Ajuda] Quantos Veiculos - by [O.z]Caroline - 08.11.2011, 11:33
Re: [Ajuda] Quantos Veiculos - by Mteck - 08.11.2011, 12:55
Re: [Ajuda] Quantos Veiculos - by [O.z]Caroline - 08.11.2011, 12:59
Re: [Ajuda] Quantos Veiculos - by TiagoPS - 08.11.2011, 13:01
Re: [Ajuda] Quantos Veiculos - by Mteck - 08.11.2011, 13:07
Re: [Ajuda] Quantos Veiculos - by Lуs - 08.11.2011, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)