hlmod.hu
https://hlmod.hu/

Kétdimenziós tömb
https://hlmod.hu/viewtopic.php?f=9&t=14574
Oldal: 1 / 1

Szerző:  Super Nova [2014.02.25. 14:27 ]
Hozzászólás témája:  Kétdimenziós tömb

Egy tömör választ várok,hogy ez így jó-e lenne,ha viszont nem,akkor szeretném hogyha kifejtenéd :)

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2.  
  3. //Kétdimenziós tömb teszt:
  4. new stringlist[2][] = { "Csao" , "Bro!" }
  5. new statusz[33][64]
  6.  
  7. #define MSG_TIME 120.0
  8.  
  9. public plugin_init() {
  10. register_plugin("Tömb teszt", "1.0.0", "SN")
  11.  
  12. set_task(MSG_TIME,"Message_send",_,_,_,"b")
  13.  
  14. register_event("DeathMsg","edeath","a")
  15. register_clcmd("say /status","stat")
  16. }
  17. public stat( id )
  18. client_print(id,print_chat,"Statusz : %d" , statusz[ id ] )
  19.  
  20. public edeath( ) {
  21. new killer = read_data(1)
  22. new victim = read_data(2)
  23. statusz[ killer ] = " Gyilkos "
  24. statusz[ victim ] = " Aldozat "
  25. }
  26. public Message_send( id )
  27. client_print(0,print_chat," %s %s " , stringlist[0],stringlist[1] )


Szerk:
Lefutni lefut,de nem tudom hogy működés közbe hogy viselkedne.

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