Advertisement
ZoriaRPG

FFCs to Print Screen ID

Feb 28th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. ffc script logScreenID
  2. {
  3.     void run()
  4.     {
  5.         int ss[]="Screen ID is ";
  6.         int buf[256];
  7.         int num[5];
  8.         itoa(num, Game->GetCurSceen();
  9.         strcpy(buf, ss);
  10.         strcat(buf, num);
  11.         TraceNL(): TraceS(buf); TraceNL();
  12.     }
  13. }
  14.  
  15. ffc script displayScreenID
  16. {
  17.     void run()
  18.     {
  19.         int ss[]="Screen ID is ";
  20.         int buf[256];
  21.         int num[5];
  22.         itoa(num, Game->GetCurSceen();
  23.         strcpy(buf, ss);
  24.         strcat(buf, num);
  25.         Screen>DrawString(7,8,8,FONT_Z3SMALL, 0x01, -1, 0, buf, 128);
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement