hlmod.hu https://hlmod.hu/ |
|
[SM] MD5 hash funkció https://hlmod.hu/viewtopic.php?f=44&t=29503 |
Oldal: 1 / 1 |
Szerző: | terminator100 [ 2018.11.04. 15:50 ] |
Hozzászólás témája: | [SM] MD5 hash funkció |
Sziasztok! [SM]-hez kellene nekem md5 HASH funkció, vagy bármilyen másik is jó, a lényeg, hogy működőképes legyen! Ezt már én is megtaláltam: https://pastebin.com/vGn1cBwb Sajnos az nem működik, teli van hibával, legalábbis fordító 26 errort ír rá (asztali compiler). Webessel is próbáltam, de az is hibát ír rá: SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2014 AlliedModders LLC /groups/sourcemod/compiler-1.7/include/core.inc(296) : warning 209: function "__ext_core_SetNTVOptional" should return a value /groups/sourcemod/upload_tmp/text6RyPP7.sp(1) : error 042: invalid combination of class specifiers /groups/sourcemod/upload_tmp/text6RyPP7.sp(1) : error 001: expected token: "}", but found ";" /groups/sourcemod/upload_tmp/text6RyPP7.sp(2) : error 021: symbol already defined: "NULL_VECTOR" /groups/sourcemod/upload_tmp/text6RyPP7.sp(3) : error 021: symbol already defined: "NULL_STRING" /groups/sourcemod/upload_tmp/text6RyPP7.sp(4) : error 042: invalid combination of class specifiers /groups/sourcemod/upload_tmp/text6RyPP7.sp(4) : error 001: expected token: "}", but found ";" /groups/sourcemod/upload_tmp/text6RyPP7.sp(5) : error 021: symbol already defined: "MaxClients" /groups/sourcemod/upload_tmp/text6RyPP7.sp(6) : error 001: expected token: "{", but found "-integer value-" /groups/sourcemod/upload_tmp/text6RyPP7.sp(6) : error 001: expected token: "}", but found ";" /groups/sourcemod/upload_tmp/text6RyPP7.sp(7) : error 001: expected token: "{", but found "-integer value-" /groups/sourcemod/upload_tmp/text6RyPP7.sp(7) : error 001: expected token: "}", but found ";" /groups/sourcemod/upload_tmp/text6RyPP7.sp(19) : error 021: symbol already defined: "__ext_core_SetNTVOptional" /groups/sourcemod/upload_tmp/text6RyPP7.sp(29) : error 181: function argument named 'str1' differs from prototype /groups/sourcemod/upload_tmp/text6RyPP7.sp(29) : error 021: symbol already defined: "StrEqual" /groups/sourcemod/upload_tmp/text6RyPP7.sp(37) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(37) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(38) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(38) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(41) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(34) : error 180: function return type differs from prototype. expected 'void', but got 'int' /groups/sourcemod/upload_tmp/text6RyPP7.sp(52) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId /groups/sourcemod/upload_tmp/text6RyPP7.sp(70) : error 035: argument type mismatch (argument 5) /groups/sourcemod/upload_tmp/text6RyPP7.sp(72) : error 035: argument type mismatch (argument 5) /groups/sourcemod/upload_tmp/text6RyPP7.sp(76) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future /groups/sourcemod/upload_tmp/text6RyPP7.sp(56) : warning 203: symbol is never used: "var1" /groups/sourcemod/upload_tmp/text6RyPP7.sp(118) : warning 237: coercing functions to and from primitives is unsupported and will be removed in the future /groups/sourcemod/upload_tmp/text6RyPP7.sp(119) : warning 213: tag mismatch /groups/sourcemod/upload_tmp/text6RyPP7.sp(116) : error 180: function return type differs from prototype. expected 'void', but got 'int' /groups/sourcemod/upload_tmp/text6RyPP7.sp(124) : error 001: expected token: ",", but found "[" /groups/sourcemod/upload_tmp/text6RyPP7.sp(124) : error 029: invalid expression, assumed zero /groups/sourcemod/upload_tmp/text6RyPP7.sp(124) : warning 215: expression has no effect /groups/sourcemod/upload_tmp/text6RyPP7.sp(124) : error 001: expected token: ";", but found "]" /groups/sourcemod/upload_tmp/text6RyPP7.sp(124) : fatal error 189: too many error messages on one line Compilation aborted. 22 Errors. |
Szerző: | *tOrNaDo [ 2018.11.04. 18:20 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
Ezt használd, nekem ez bevált: Kód: stock MD5String(const String:str[], String:output[], maxlen) |
Szerző: | terminator100 [ 2018.11.04. 19:10 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
Szia, sajna nem jó, 26 hibát ír: /groups/sourcemod/upload_tmp/textr26uft.sp(130) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(132) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(133) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(156) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(159) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(183) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(184) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(207) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(210) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(264) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(271) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(272) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(273) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(274) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(275) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(276) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(277) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(278) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(279) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(280) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(281) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(282) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(283) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(284) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(285) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier /groups/sourcemod/upload_tmp/textr26uft.sp(286) : error 173: 'in' is a newly reserved keyword that may be used in the future; use a different name as an identifier az IN-re... nem tudom mit lehetne vele tenni :/ |
Szerző: | *tOrNaDo [ 2018.11.04. 19:32 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
Ez egy stock.. Magába nem fog működni. SourceModba bele írtad? |
Szerző: | terminator100 [ 2018.11.04. 19:49 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
XDDD bele írtam a pluginomba de nem jó... mert azt a hibát adja le 26x. Amit bemásoltam. Tudom mi ez. Annyira kezdő nem vagyok... Vagy ez a behívás nem jó ?: MD5String(sPassword1, safekod, 255); Mert ha ki kommentelem csak 1x írja azt a hibát amit oda kiraktam... de elvileg jónak kellene lennie... |
Szerző: | *tOrNaDo [ 2018.11.04. 20:30 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
terminator100 írta: XDDD bele írtam a pluginomba de nem jó... mert azt a hibát adja le 26x. Amit bemásoltam. Tudom mi ez. Annyira kezdő nem vagyok... Vagy ez a behívás nem jó ?: MD5String(sPassword1, safekod, 255); Mert ha ki kommentelem csak 1x írja azt a hibát amit oda kiraktam... de elvileg jónak kellene lennie... Ha a pluginba is meg van hívva az sPassword1, akkor jó kell hogy legyen. Ja meg a safekod. |
Szerző: | terminator100 [ 2018.11.04. 20:32 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
Meg van, de amit írtam hibát azzal eldobja a fordító a plugint. |
Szerző: | *tOrNaDo [ 2018.11.05. 20:56 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
terminator100 írta: Meg van, de amit írtam hibát azzal eldobja a fordító a plugint. Esetleg ez segít: https://forums.alliedmods.net/showthread.php?t=303868 |
Szerző: | terminator100 [ 2018.11.05. 21:48 ] |
Hozzászólás témája: | Re: [SM] MD5 hash funkció |
Nagyon köszönöm, ezt a témát már asszem láttam, mert el is volt mentve. De nem láttam, hogy ott van 1 csatolt include...
Sikerült a jelszós rendszer, működik. köszönöm szépen! |
Oldal: 1 / 1 | Minden időpont UTC+02:00 időzóna szerinti |
Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |