29.08.2010, 11:51
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
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