dudb (udb_exists) errors
#1

Код:
C:\DOCUME~1\ADMINI~1\Desktop\CNR2\pawno\new.pwn(331) : warning 215: expression has no effect
C:\DOCUME~1\ADMINI~1\Desktop\CNR2\pawno\new.pwn(331) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\ADMINI~1\Desktop\CNR2\pawno\new.pwn(331) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\Desktop\CNR2\pawno\new.pwn(331) : error 029: invalid expression, assumed zero
C:\DOCUME~1\ADMINI~1\Desktop\CNR2\pawno\new.pwn(331) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Here are the lines

pawn Код:
CMD:changename(playerid,params[])
{
    if(IsAdminAllowed(playerid,"changename"))
    {
        new id,name[256];
        if (sscanf(params, "us", id,name)) return SendClientMessage(playerid, PINK, "Usage:/changename <id> <name>");
        if(udb_Exists)name)) return SendClientMessage(playerid,PINK,"This Name Is Already in use!");
        new oldname[256];
        format(oldname,sizeof(oldname),"%s(%d)",GetName(id),id);
        udb_RenameUser(GetName(id),name);
        SetPlayerName(id,name);
        new string[256];
        format(string,sizeof(string),"Admin %s(%d) Has Changed Player %s's Name To %s(%d)",GetName(playerid),playerid,oldname,GetName(id),id);
        SendClientMessageToAll(PINK,string);
        return 1;
    }
Have latest version of dudb.
Have been trying to fix this couldn't find one, so here i am.
Reply
#2

pawn Код:
CMD:changename(playerid,params[])
{
    if(IsAdminAllowed(playerid,"changename"))
    {
        new id,name[256];
        if (sscanf(params, "us", id,name)) return SendClientMessage(playerid, PINK, "Usage:/changename <id> <name>");
        if(udb_Exists(name)) return SendClientMessage(playerid,PINK,"This Name Is Already in use!");
        new oldname[256];
        format(oldname,sizeof(oldname),"%s(%d)",GetName(id),id);
        udb_RenameUser(GetName(id),name);
        SetPlayerName(id,name);
        new string[256];
        format(string,sizeof(string),"Admin %s(%d) Has Changed Player %s's Name To %s(%d)",GetName(playerid),playerid,oldname,GetName(id),id);
        SendClientMessageToAll(PINK,string);
        return 1;
    }
    return 1;
}
Reply
#3

That really didn't help.
Reply
#4

More than likely you have the dudb include along side with a stock with the same function. If you have the dudb include at the top of the script, just comment it out.
Reply
#5

Even that couldn't help, same errors any other ideas?
Reply
#6

do not forget to corectly fill all the pharanteses and use ;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)