Error with udb_hash -
Heress - 14.06.2018
I created login/register system, I solved all error/warning, but where is one
C:\Users\Nerijus\Desktop\Serveris 0.3.7\gamemodes\pls.pwn( 4998 ) : error 021: symbol already defined: "udb_hash"
4998||stock udb_hash(buf[])
4999||{
5000|| new length=strlen(buf);
5001|| new s1 = 1;
5002|| new s1 = 0;
5003|| new n;
5004|| for (n=0; n<length; n++)
5005|| {
5006|| s1 = (s1 + buf[n]) % 65521;
5007|| s2 = (s2 + s1) % 65521;
5008|| }
5009|| return (s2 << 16) + s1;
5010||}
Please help!
Re: Error with udb_hash -
Shadow0707 - 14.06.2018
just remove all of that then compile
Re: Error with udb_hash -
Heress - 14.06.2018
I Compiled, but now I have Run time error
Script[gamemodes/pls.amx]:Run time error 19:"File or function is not found"
Number of vehicles models: 0
Re: Error with udb_hash -
Shadow0707 - 14.06.2018
post your server log here
make sure your include has the same version with your plugins
Re: Error with udb_hash -
Heress - 14.06.2018
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team
[12:37:47]
[12:37:47] Server Plugins
[12:37:47] --------------
[12:37:47] Loading plugin: streamer
[12:37:47]
*** Streamer Plugin v2.9.3 by Incognito loaded ***
[12:37:47] Loaded.
[12:37:47] Loaded 1 plugins.
[12:37:47]
[12:37:47] Filterscripts
[12:37:47] ---------------
[12:37:47] Loading filterscript 'ufo.amx'...
[12:37:47] Loading filterscript 'sweeper.amx'...
[12:37:47] Loading filterscript 'sms.amx'...
[12:37:47] Loading filterscript 'ms.amx'...
[12:37:47] Loading filterscript 'md.amx'...
[12:37:47] Loading filterscript 'orob.amx'...
[12:37:47] Loading filterscript 'mdgb.amx'...
[12:37:47] Loaded 7 filterscripts.
[12:37:47] Script[gamemodes/pls.amx]: Run time error 19: "File or function is not found"
[12:37:47] Number of vehicle models: 0
Re: Error with udb_hash -
Shadow0707 - 14.06.2018
show me your includes you might have some missing plugin
Re: Error with udb_hash -
Heress - 14.06.2018
https://imgur.com/a/w29OKJB
Re: Error with udb_hash -
Shadow0707 - 14.06.2018
not that one
the thing in your gm
example: #include <streamer>
Re: Error with udb_hash -
Heress - 14.06.2018
I have #include <streamer>
https://imgur.com/a/Rl2LN1B
Re: Error with udb_hash -
Shadow0707 - 14.06.2018
make sure your gamemode .amx is in gamemode folder
Re: Error with udb_hash -
Heress - 14.06.2018
Yes, .amx is in gamemode folder
https://imgur.com/a/2LVFcZ8
Re: Error with udb_hash -
Lokii - 14.06.2018
Update you'r plugins and if you still get the error add
Main() to you'r GM
EDIT
i see you got the latest streamer plugin
all you have to do is open you'r gm.pwn and add this somewhere
Re: Error with udb_hash -
Heress - 14.06.2018
I have updated, but where is that error
and I have main
https://imgur.com/a/0TBEdCz
main()
{
}
Re: Error with udb_hash -
CodeStyle175 - 14.06.2018
considering your coding skills there is no need for hashing passwords, because its bad gamemode anyway.
Re: Error with udb_hash -
Heress - 14.06.2018
I copied another gm and put i my gamemode and just change language to my. I don't write this system. That's why I asking for help... I will try to do it by myself. Thanks fo all
Re: Error with udb_hash -
CodeStyle175 - 14.06.2018
error 021: symbol already defined: "udb_hash"
this means that the function already exists in some include or in gamemode and you dont have create this function many times.