Error with udb_hash
#1

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!
Reply
#2

just remove all of that then compile
Reply
#3

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
Reply
#4

post your server log here

make sure your include has the same version with your plugins
Reply
#5

----------
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
Reply
#6

show me your includes you might have some missing plugin
Reply
#7

https://imgur.com/a/w29OKJB
Reply
#8

not that one

the thing in your gm
example: #include <streamer>
Reply
#9

I have #include <streamer>

https://imgur.com/a/Rl2LN1B
Reply
#10

make sure your gamemode .amx is in gamemode folder
Reply
#11

Yes, .amx is in gamemode folder
https://imgur.com/a/2LVFcZ8
Reply
#12

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

PHP Code:
main() { } 
Reply
#13

I have updated, but where is that error

and I have main https://imgur.com/a/0TBEdCz

main()
{
}
Reply
#14

considering your coding skills there is no need for hashing passwords, because its bad gamemode anyway.
Reply
#15

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
Reply
#16

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)