Advertisement
garfield

[COD]: Realizar debug facilmente. Ver.2.0

Oct 6th, 2011
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.74 KB | None | 0 0
  1. /*
  2.         - Fazer debug no gamemode.
  3.         - Para usar coloque esta função na útlima linha do gm.
  4.         - depois coloque no final do OnGameModeInit: ExibeDebug();
  5.         - Créditos: [iPs]SuYaNw.
  6. */
  7.  
  8. stock ExibeDebug()
  9. {
  10.         new
  11.             CAR         = -1,
  12.             GZ          = -1,
  13.             PK          = -1,
  14.             Ob          = -1,
  15.             Text3D:Lb,
  16.             Menu:Mn,
  17.             Text:TD
  18.         ;
  19.  
  20.         CAR      = AddStaticVehicle(568, 0.0,0.0, 0.0, 0.0, -1, -1);                                    DestroyVehicle(CAR);
  21.         GZ   = GangZoneCreate(0.0,0.0,0.0,0.0);                                                         GangZoneDestroy(GZ);
  22.         TD   = TextDrawCreate(240.0,580.0," ");                                                                         TextDrawDestroy(TD);
  23.         PK   = CreatePickup(1242, 2, 1503.3359, 1432.3585, 10.1191, -1);            DestroyPickup(PK);
  24.         Ob   = CreateObject(2587, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);               DestroyObject(Ob);
  25.         Mn   = CreateMenu(" ", 2, 200.0, 100.0, 150.0, 150.0);              DestroyMenu(Mn);
  26.         Lb   = Create3DTextLabel("", -1, 0.0, 0.0, 0.0, 0.0, -1, 0);                Delete3DTextLabel(Lb);
  27.  
  28.         print("||===========[ DEBUG ]=============||");
  29.         printf("|| Carros:      %d",                      CAR);
  30.         printf("|| GangZonas:   %d",                       GZ);
  31.         printf("|| TextDraws:   %d",              _:TD -1);
  32.         printf("|| Pickup's :   %d",                       PK);
  33.         printf("|| Object's :   %d",                       Ob);
  34.         printf("|| Menu's   :   %d",               _:Mn-1);
  35.         printf("|| 3DLabel's:   %d",           _:Lb-1);
  36.         print("||===========[ DEBUG ]=============||");
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement