hlmod.hu
https://hlmod.hu/

id definiálása
https://hlmod.hu/viewtopic.php?f=10&t=6216
Oldal: 1 / 1

Szerző:  Vinnice [ 2012.10.07. 14:16 ]
Hozzászólás témája:  id definiálása

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Vinnice"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_logevent("Korveg", 2, "1=Round_End")
  12. }
  13. public Korveg()
  14. {
  15.  
  16. client_print(player, print_chat, "asdasd") // player == a játékos idje
  17. }

hogy tudnám ezt definiálni?

Szerző:  IrOn [ 2012.10.07. 14:34 ]
Hozzászólás témája:  Re: id definiálása

Vinnice írta:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Vinnice"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_logevent("Korveg", 2, "1=Round_End")
  12. }
  13. public Korveg()
  14. {
  15.  
  16. client_print(player, print_chat, "asdasd") // player == a játékos idje
  17. }

hogy tudnám ezt definiálni?

gondolom ezt akarod:
SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Vinnice"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_logevent("Korveg", 2, "1=Round_End")
  12. }
  13. public Korveg()
  14. {
  15. new players[32], pnum;
  16. get_players(players, pnum "c")
  17. for(new i = 0; i < 0; i++)
  18. {
  19. client_print(players[i], print_chat, "asdasd") // player == a játékos idje
  20. }
  21. }

Szerző:  Vinnice [ 2012.10.07. 15:05 ]
Hozzászólás témája:  Re: id definiálása

Kód:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

Error: Expected token: ",", but found "-string-" on line 16
Warning: Expression has no effect on line 16
Error: Expected token: ";", but found ")" on line 16
Error: Invalid expression, assumed zero on line 16
Error: Too many error messages on one line on line 16

Compilation aborted.
4 Errors.

help!

Szerző:  fuck604 [ 2012.10.07. 16:16 ]
Hozzászólás témája:  Re: id definiálása

SMA Forráskód: [ Mindet kijelol ]
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define PLUGIN "New Plug-In"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Vinnice"
  7.  
  8.  
  9. public plugin_init() {
  10. register_plugin(PLUGIN, VERSION, AUTHOR)
  11. register_logevent("Korveg", 2, "1=Round_End")
  12. }
  13. public Korveg()
  14. {
  15. for(new id = 1 ; id <= get_maxplayers() ; id++)
  16. if(is_user_connected(id))
  17. client_print(id, print_chat, "asdasd") // player == a játékos idje
  18. }

Szerző:  IrOn [ 2012.10.07. 17:36 ]
Hozzászólás témája:  Re: id definiálása

SMA Forráskód: [ Mindet kijelol ]
  1. get_players(players, pnum "c")

itt maradt le enyémbe 1 vessző
-->
SMA Forráskód: [ Mindet kijelol ]
  1. get_players(players, pnum, "c")

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