dudb (udb_exists) errors -
RanSEE - 01.09.2012
Код:
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.
Re: dudb (udb_exists) errors -
Kirollos - 01.09.2012
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;
}
Re: dudb (udb_exists) errors -
RanSEE - 01.09.2012
That really didn't help.
Re: dudb (udb_exists) errors -
sniperwars - 01.09.2012
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.
Re: dudb (udb_exists) errors -
RanSEE - 01.09.2012
Even that couldn't help, same errors any other ideas?
Re: dudb (udb_exists) errors -
[FR]Fratzica - 01.09.2012
do not forget to corectly fill all the pharanteses and use ;