Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. // define natives
  2. native CreatePlayer <= FF
  3.  
  4. function test(void) { }
  5.  
  6. function foo(int iVariables, pointer ptrA) { }
  7.  
  8. function main(void) {
  9.     local int a
  10.     local int b
  11.  
  12.     local int playerID
  13.  
  14.     sco {
  15.         push playerID     // the same like if playerId
  16.         .if {
  17.             push 2
  18.             .ptr playerID
  19.             call foo  // the same like foo(2, &playerID)
  20.         }
  21.     }
  22.  
  23.     if playerID {
  24.         foo(2, &playerID)
  25.     }
  26.  
  27.     //a = 3
  28.  
  29.     CreatePlayer(255, 2000.0, 3000.0, 0, 9, &playerID) ?? 0
  30.  
  31.     if a == b { test(void) }
  32.     if a == 3 { test(void) }
  33.  
  34.     if b == 4 { test(void) }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement