hlmod.hu
https://hlmod.hu/

Szerver rank
https://hlmod.hu/viewtopic.php?f=9&t=3884
Oldal: 1 / 1

Szerző:  CeDee [2012.03.29. 17:50 ]
Hozzászólás témája:  Szerver rank

Hogyan lehet lekérni a player rankját?
(pl:. Te helyezesed 1)

Szerző:  Silent [2012.03.29. 17:52 ]
Hozzászólás témája:  Re: Szerver rank

CeDeee írta:
Hogyan lehet lekérni a player rankját?
(pl:. Te helyezesed 1)


Kód:

new rank;
get_user_info(id, rank, rank);



Ez műxik? :D

Szerző:  CeDee [2012.03.29. 17:55 ]
Hozzászólás témája:  Re: Szerver rank

majd kiderül :D köszi
Kód:
  1. #include <amxmodx>

  2. #include <colorchat>

  3.  

  4. #define PLUGIN "New-plugin"

  5. #define VERSION "1.0"

  6. #define AUTHOR "author"

  7.  

  8. public plugin_init() {

  9.         register_clcmd("say /test", "testcommand")

  10. }

  11.  

  12. public testcommand(id){

  13.         new rank;

  14.            get_user_info(id, rank, rank);

  15.         ColorChat(id, GREY, "Te rankod %s"),rank;

  16. }

  17.  

  18.  

Hogy is kéne?:D

Szerző:  Silent [2012.03.29. 18:31 ]
Hozzászólás témája:  Re: Szerver rank

Nemtom hogy most szövegként vagy számként írja ki, próbáld ki.:

Kód:
#include <amxmodx>
#include <colorchat>
 
#define PLUGIN "New-plugin"
#define VERSION "1.0"
#define AUTHOR "author"
 
public plugin_init() {
        
register_clcmd("say /test""testcommand"
}
 
public 
testcommand(id){
        new 
rank;
           
get_user_info(idrankrank);
        
ColorChat(idGREY"Te rankod %s %d"rankrank);

Szerző:  CeDee [2012.03.29. 18:33 ]
Hozzászólás témája:  Re: Szerver rank

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

files/4926983/4926983.sma(14) : error 035: argument type mismatch (argument 2)

1 Error.
Could not locate output file 4926983.amx (compile failed).

Szerző:  Silent [2012.03.29. 18:39 ]
Hozzászólás témája:  Re: Szerver rank

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

files/4926983/4926983.sma(14) : error 035: argument type mismatch (argument 2)

1 Error.
Could not locate output file 4926983.amx (compile failed).



írd át:

get_user_info(id, rank, rank); - ot get_user_info(id, "rank", rank); -ra

Szerző:  CeDee [2012.03.29. 18:40 ]
Hozzászólás témája:  Re: Szerver rank

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

files/4926983/4926983.sma(14) : error 035: argument type mismatch (argument 2)

1 Error.
Could not locate output file 4926983.amx (compile failed).



írd át:

get_user_info(id, rank, rank); - ot get_user_info(id, "rank", rank); -ra

ilyesmit ovastam amxmodx.org-on :)

Szerző:  CeDee [2012.03.29. 18:45 ]
Hozzászólás témája:  Re: Szerver rank

igyse jó..:(

Szerző:  kiki [2012.03.29. 19:11 ]
Hozzászólás témája:  Re: Szerver rank

get_user_stats

Szerző:  CeDee [2012.03.29. 20:27 ]
Hozzászólás témája:  Re: Szerver rank

Kód:
  1. #include <amxmodx>

  2. #include <csstats>

  3.  

  4.  

  5. public plugin_init()

  6. {

  7.   register_clcmd("say /test","testcommand")

  8.  

  9. }

  10. public testcommand(id)

  11. {

  12.  

  13.     new izStats[8], izBody[8]

  14.     new iRankPos, iRankMax

  15.     iRankPos = get_user_stats(id,izStats,izBody)

  16.         client_print(id, print_chat, "Te rankod %i",iRankPos)

  17. }

pl igy?
teszteltem müködik, köszi :)

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