#1

hi i have this errors and warning> error 012: invalid function call, not a valid address
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line

on this command

dcmd_ban(playerid, params[])
{
new id, tmp[128],string[128];
if(sscanf(params, "uz", id, tmp)) return SendClientMessage(playerid, COLOR_RED, "[AIUTO]: /BAN [ID / NOME] [MOTIVO]");
if(!IsPlayerConnected(id) || id == playerid) return SendClientMessage(playerid, COLOR_RED, "и offline o sei te stesso");
format(string, sizeof string, "Player: %s и stato bannato da %s%s%",Name(id), AdminName(playerid),tmp);
SendClientMessageToAll(YELLOW, string), print(string);
format(string,sizeof(string),"Bannato da %s",AdminName(playerid));
SendCommandMsg(playerid,"ban");
return BanEx(id,tmp);
}


error line is :
format(string, sizeof string, "Player: %s и stato bannato da %s%s%",Name(id), AdminName(playerid),tmp);


help please
Reply
#2

Try:
pawn Код:
format(string, sizeof(string), "Player: %s и stato bannato da %s%s%",Name(id), AdminName(playerid),tmp);
Reply
#3

same error
Reply
#4

Do you have defined/forwarded the "AdminName" and the "Name"? Or used them before?

Or try:
pawn Код:
format(string, sizeof(string), "Player: %s и stato bannato da %s [ %s ]",Name(id), Name(playerid),tmp);
Reply
#5

Have you actually created the AdminName function?
Reply
#6

yes i create it is a stock
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)