funkcja is_user_steam nie dziala (nowe reu...
Żuk
06.02.2021
Zaktualizowałem reunion do wersji reunion_0.1.0.137 i funkcja
stock bool:is_user_steam( id ) { server_cmd("dp_clientinfo %d", id); server_exec(); static uClient; uClient = get_pcvar_num(pcv_dp_r_id_provider); if ( uClient == 2 ) return true; return false; }
przestała działać:
L 02/06/2021 - 17:08:51: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 02/06/2021 - 17:08:51: [AMXX] [0] rate.sma::is_user_steam (line 63)
L 02/06/2021 - 17:08:51: [AMXX] [1] rate.sma::ratex (line 30)
Próbowałem też "poprawki od DarkGL
stock bool:is_user_steam(id) { if( !is_user_connected( id ) ){ return false; } if( !cvarProvider ){ return false; } server_cmd("dp_clientinfo %d", id); server_exec(); static client; client = get_pcvar_num(cvarProvider); if (client == 2) return true; return false; }
i rzeczywiście errorlogi znikają aczkolwiek funkcja ta nie rozróżnia protokołów (rate ustawione na 100k dla steam 25k dla ns, wymusza 25k wszystkim).
A konkretnie problem stał się po zmianie:
### AUTH SETTINGS ###
# Authorization protocols version. All steamdid's of non-steams players will be changed in common with this value.
# 1: DProto (deprecated)
# 2: Reunion 2015-2018
# 3: Reunion new (recommended)
AuthVersion = 3
Na Authversoin = 2 wszystko działa
Żuk
07.02.2021
] status hostname: Twoj serwer ^ 1shot1kill.pl version : 48/1.1.2.7/Stdio 2402 secure (10) tcp/ip : xxxxxxxxxxxxx map : de_dust2 at: 0 x, 0 y, 0 z players : 1 active (4 max) # name userid uniqueid frag time ping loss adr # 1 "test" 1 STEAM_0:1:7350000 0 00:21 29 0 1 users
] amx_who Gracze na serwerze: # nick authid userid imm res access 1 test STEAM_0:1:7350000 1 Tak Tak abcdefghijklmnopqrsu Lacznie 1
Użytkownik Żuk edytował ten post 07.02.2021 13:46
Żuk
07.02.2021
Wiem jaką wersję wrzuciłem i jest taka sytuacja jak wyżej opisałem. Nie ma żadnych problemów do tej pory z tą wersją reunion samą w sobie. Chodzi tylko o wartość komendy AuthVersion, chciałbym ustawić na 3 tak jak zaleca autor jednak sypie się stock is_user_steamid, dlatego na razie AuthVersion mam na 2.
Użytkownik Żuk edytował ten post 07.02.2021 22:33