[AYUDA] Error de comando registrar
#1

Hola, bueno estaba borrando el sistema de administracion de mi script el cual es el Ladmin y antes de terminar de borrarlo decidi no borrarlo al final porque... Y cuando vuelvo a poner todo el Ladmin devuelta me dio el siguiente error en el comando registrar.

pawn Код:
gamemodes\GD.pwn(14548) : warning 202: number of arguments does not match definition
gamemodes\GD.pwn(14628) : error 017: undefined symbol "udb_CheckLogin"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
En el siguiente comando(Pongo el comando registrar y logear ya que los dos tienen funciones parecidas).
pawn Код:
//====================== [REGISTER  &  LOGIN] ==================================
CMD:registrar(playerid,params[])
{
    if (PlayerInfo[playerid][LoggedIn] == 1) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: You are already registered and logged in.");
    if (udb_Exists(PlayerName2(playerid))) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: This account already exists, please use '/login [password]'.");
    if (strlen(params) == 0) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Correct usage: '/register [password]'");
    if (strlen(params) < 4 || strlen(params) > 20) return SendClientMessage(playerid,COLOR_RED,"ACCOUNT: Password length must be greater than three characters");
    if (udb_Create(PlayerName2(playerid),params))
    {
        new file[256],rname[MAX_PLAYER_NAME], tmp3[100];
        new strdate[20], year,month,day;
        getdate(year, month, day);
        GetPlayerName(playerid,rname,sizeof(rname));
        format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(rname));
        GetPlayerIp(playerid,tmp3,100);
        dini_Set(file,"ip",tmp3);
//      dini_Set(file,"password",params);
        dUserSetINT(PlayerName2(playerid)).("registered",1);
        format(strdate, sizeof(strdate), "%d/%d/%d",day,month,year);
        dini_Set(file,"RegisteredDate",strdate);
        dUserSetINT(PlayerName2(playerid)).("loggedin",1);
        dUserSetINT(PlayerName2(playerid)).("banned",0);
        dUserSetINT(PlayerName2(playerid)).("level",0);
        dUserSetINT(PlayerName2(playerid)).("LastOn",0);
        dUserSetINT(PlayerName2(playerid)).("money",0);
        dUserSetINT(PlayerName2(playerid)).("kills",0);
        dUserSetINT(PlayerName2(playerid)).("deaths",0);
        dUserSetINT(PlayerName2(playerid)).("Bank",PlayerInfo[playerid][bank]);
        dUserSetINT(PlayerName2(playerid)).("weed",PlayerInfo[playerid][weed]);
        dUserSetINT(PlayerName2(playerid)).("Gang",PlayerInfo[playerid][gang]);
        dUserSetINT(PlayerName2(playerid)).("Condoms",PlayerInfo[playerid][condoms]);
        dUserSetINT(PlayerName2(playerid)).("inalcatraz",PlayerInfo[playerid][inalcatraz]);
        PlayerInfo[playerid][LoggedIn] = 1;
        PlayerInfo[playerid][Registered] = 1;
        SavePlayer(playerid);
        dUserSetINT(PlayerName2(playerid)).("bowner",0);
        dUserSetINT(PlayerName2(playerid)).("bowned",0);
        dUserSetINT(PlayerName2(playerid)).("vowned",0);
        dUserSetINT(PlayerName2(playerid)).("vowner",0);
        dUserSetINT(PlayerName2(playerid)).("vowned2",0);
        dUserSetINT(PlayerName2(playerid)).("vowner2",0);
        dUserSetINT(PlayerName2(playerid)).("vowned3",0);
        dUserSetINT(PlayerName2(playerid)).("vowner3",0);
        dUserSetINT(PlayerName2(playerid)).("vowned4",0);
        dUserSetINT(PlayerName2(playerid)).("vowner4",0);
        dUserSetINT(PlayerName2(playerid)).("vowned5",0);
        dUserSetINT(PlayerName2(playerid)).("vowner5",0);
        dUserSetINT(PlayerName2(playerid)).("vowned6",0);
        dUserSetINT(PlayerName2(playerid)).("vowner6",0);
        dUserSetINT(PlayerName2(playerid)).("vowned7",0);
        dUserSetINT(PlayerName2(playerid)).("vowner7",0);
        dUserSetINT(PlayerName2(playerid)).("vowned8",0);
        dUserSetINT(PlayerName2(playerid)).("vowner8",0);
        dUserSetINT(PlayerName2(playerid)).("vowned9",0);
        dUserSetINT(PlayerName2(playerid)).("vowner9",0);
        dUserSetINT(PlayerName2(playerid)).("vowned10",0);
        dUserSetINT(PlayerName2(playerid)).("vowner10",0);
        dUserSetINT(PlayerName2(playerid)).("vowned11",0);
        dUserSetINT(PlayerName2(playerid)).("vowner11",0);
        dUserSetINT(PlayerName2(playerid)).("vowned12",0);
        dUserSetINT(PlayerName2(playerid)).("vowner12",0);
        dUserSetINT(PlayerName2(playerid)).("vowned13",0);
        dUserSetINT(PlayerName2(playerid)).("vowner13",0);
        dUserSetINT(PlayerName2(playerid)).("vowned14",0);
        dUserSetINT(PlayerName2(playerid)).("vowner14",0);
        dUserSetINT(PlayerName2(playerid)).("vowned15",0);
        dUserSetINT(PlayerName2(playerid)).("vowner15",0);
        dUserSetINT(PlayerName2(playerid)).("Houseid", -255);
        dUserSetINT(PlayerName2(playerid)).("Rentid", -255);
        dUserSetINT(PlayerName2(playerid)).("SpawnX", 0);
        dUserSetINT(PlayerName2(playerid)).("SpawnY", 0);
        dUserSetINT(PlayerName2(playerid)).("SpawnZ", 0);
        dUserSetINT(PlayerName2(playerid)).("SpawnInt", 0);
        LoginPlayer(playerid);
        LoadPlayer(playerid);
        SendClientMessage(playerid, green, "ACCOUNT: You are now registered, and have been automaticaly logged in");
        PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
        return 1;
    }
    return 1;
}
Busque en la wiki sobre el error pero solo encontre informacion sobre el warning 202: number of arguments does not match definition. Espero que me puedan ayudar.
Reply


Messages In This Thread
[AYUDA] Error de comando registrar - by GoldenDragon - 09.08.2011, 23:16
Re: [AYUDA] Error de comando registrar - by OwlCity - 09.08.2011, 23:27
Respuesta: Re: [AYUDA] Error de comando registrar - by GoldenDragon - 09.08.2011, 23:32

Forum Jump:


Users browsing this thread: 1 Guest(s)