Heey Liebe Com
Habe da ma nen Irc Chat Gemacht aber da sind noch fehler Drinne die ich nicht Fixxen kan
Ich habe Das Include Ocmd und den Stock sscanf
Die Errors :
(389) : warning 215: expression has no effect
(402) : error 003: declaration of a local variable must appear in a compound block
(402) : error 017: undefined symbol "Name"
(402) : warning 215: expression has no effect
(402) : error 001: expected token: ";", but found "]"
(402) : fatal error 107: too many error messages on one line
Im Script :
GanzOben
new irc[MAX_PLAYERS];
Der Irc :
ocmd:setirc(playerid,params[])
{
new ircid;
if(sscanf(params,"d",ircid))return SendClientMessage(playerid,-1,"Tippe: /setirc [ID]");
irc[playerid] == ircid; //Zeile 389
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]; //Zeile 402
GetPlayerName(playerid,Name,24);
format(string,sizeof(string),"IRC: %s : %s",Name,text);
SendClientMessage(i,-1,string);
return 1;
}
return 1;
}
Brauche da ma Hilfe
mfg. CapriZ