does not match definition
#1

pawn Код:
C:\Users\Matt\Desktop\SAMP\UMGS\filterscripts\Admin.pwn(1173) : warning 202: number of arguments does not match definition
C:\Users\Matt\Desktop\SAMP\UMGS\filterscripts\Admin.pwn(8079) : warning 202: number of arguments does not match definition
C:\Users\Matt\Desktop\SAMP\UMGS\filterscripts\Admin.pwn(8229) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Warnings.
Line 1173:
pawn Код:
if (udb_Create(PlayerName2(playerid)))
Line 8079:
pawn Код:
if (udb_Create(PlayerName2(playerid)))
Line 8229
pawn Код:
if (udb_Create(PlayerName2(playerid)))
it start when i change this
pawn Код:
if( (!strcmp(tmp3,tmp2,true)) && (ServerInfo[AutoLogin] == 1))
    {
        LoginPlayer(playerid);
        if(AccInfo[playerid][Level] > 0)
        {
            switch(AccInfo[playerid][Level])
            {
                case 1: AdmRank = "Trial Moderator";
                case 2: AdmRank = "Moderator";
                case 3: AdmRank = "Junior Administrator";
                case 4: AdmRank = "Administrator";
                case 5: AdmRank = "Head Administrator";
            }
            if(AccInfo[playerid][Level] > 5)
            {
                AdmRank = "Community Owner";
            }
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
Don't use udb!
why should not use it?
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
Two reasons:

1) It is based on dini, which works by opening a file, reading it, and closing the file again for EVERY read and EVERY write. Most other INI systems do all their reads and writes with a single open/close, making them orders of magnitude faster.

2) Its password "encryption" is "udb_hash", which is an "Adler32" hash and NOT cryptographic. It is a 32bit hash, used for CRC and comparisons, not secure storage, because it can be cracked in literally milliseconds. In fact, if your password is more than 5 characters long it is actualy WORSE than just storing the plain-text password (and that is pretty bad to begin with).
ok thanks i will change it, thanks for the information about it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)