Advertisement
Guest User

PAWN wtf

a guest
Jul 25th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.67 KB | None | 0 0
  1. ////////////////////////
  2. //case 1
  3. ///////////////////////
  4. static bool:g_bSmth = false;
  5.  
  6. public OnSomething(playerid, smth[])
  7. {
  8.     if (g_bSmth)
  9.         print("YES");
  10.     else
  11.         print("NO");
  12.        
  13.     printf("%d", g_bSmth);
  14.        
  15.     return 1;
  16. }
  17.  
  18. //output:
  19. //
  20. //YES
  21. //89 which means 'Y' in ascii
  22.  
  23. ///////////////////////////////////////////////////////////////
  24. //case 2
  25. //////////////////////////////////////////////////////////////
  26. static bool:g_bSmth = false;
  27.  
  28. public OnSomething(playerid, smth[])
  29. {
  30.     g_bSmth = true;
  31.    
  32.     if (g_bSmth)
  33.         print("YES");
  34.     else
  35.         print("NO");
  36.        
  37.     printf("%d", g_bSmth);
  38.    
  39.     return 1;
  40. }
  41.  
  42. //output:
  43. //
  44. //☺ES
  45. //1
  46.  
  47. //☺ - is 1 in ascii
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement