hlmod.hu
https://hlmod.hu/

Includeban bool
https://hlmod.hu/viewtopic.php?f=9&t=29072
Oldal: 2 / 2

Szerző:  JohanCorn [ 2018.06.14. 01:20 ]
Hozzászólás témája:  Re: Includeban bool

Egy egyszerű példa.

  1. // Include
  2.  
  3. native get_test_bool(index);
  4. native set_test_bool(index, this);
  5.  
  6. // Main
  7.  
  8. new bool:test[33];
  9.  
  10. public plugin_natives() {
  11.    
  12.     register_native("get_test_bool", "native_get_test_bool", 1);
  13.     register_native("set_test_bool", "native_set_test_bool", 1);
  14. }
  15.  
  16. public native_get_test_bool(index)
  17.     return test[index];
  18.    
  19. public native_set_test_bool(index, this)
  20.     test[index]= this;
  21.    
  22. // Sub
  23.  
  24. set_test_bool(index, ture); // Set
  25.  
  26. get_test_bool(index) // Get

Oldal: 2 / 2 Minden időpont UTC+02:00 időzóna szerinti
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/