Da bin ich wieder , lang nich mehr gesehen haha
hier mein problem
Error :
: error 003: declaration of a local variable must appear in a compound block
: error 017: undefined symbol "Name"
: warning 215: expression has no effect
: error 001: expected token: ";", but found "]"
: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Zeilen :
ocmd:setirc(playerid,params[])
{
new ircid;
if(sscanf(params,"d",ircid))return SendClientMessage(playerid,-1,"Tippe: /setirc [ID]");
irc[playerid] == ircid;
return 1;
}
ocmd:irc(playerid,params[])
{
new string[128],text[128];
if(sscanf(params,"s",text))return SendClientMessage(playerid,-1,"Tippe: /irc [Text]");
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(irc[i] == irc[playerid])
new Name[24];
GetPlayerName(playerid,Name,24);
format(string,sizeof(string),"IRC: %s : %s",Name,text);
SendClientMessage(i,-1,string);
return 1;
}
return 1;
}