Kann mir jemand Helfen ?
DANKE IM VORAUS !
// AW ANFANG //
if(strcmp(cmd, "/aw", true) == 0 || strcmp(cmd, "/adminwhisper", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
[color=#006600]if(SpielerInfo[i][pAdmin] >= 1)[/color] <- Hier ist der Fehler !
{
SendClientMessage(playerid, COLOR_GREY, "Du bist nicht Befugt!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/aw)isper [SpielerID/SpielerName] [whisper text]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(giveplayerid == playerid)
{
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "NUTZUNG: (/aw)isper [SpielerID/SpielerName] [whisper text]");
return 1;
}
format(string, sizeof(string), "Admin %s(ID: %d) sagt dir: %s", sendername, playerid, (result));
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "Nachricht gesendet an %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(SpielerInfo[i][pAdmin] >= 1)
{
format(string, sizeof(string), "*Admin %s whispert zu %s", sendername, giveplayer);
SendClientMessage(i,COLOR_YELLOW,string);
}
}
}
return 1;
}
}
else
{
format(string, sizeof(string), " %d ist kein Aktiver Spieler.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
// AW ENDE //
C:\Users\Max\Desktop\[RoS]RealLife of San Andreas [0.3e]\[RoS]RealLife of San Andreas [0.3e]\gamemodes\unbekannt.pwn(17791) : error 029: invalid expression, assumed zero
C:\Users\Max\Desktop\[RoS]RealLife of San Andreas [0.3e]\[RoS]RealLife of San Andreas [0.3e]\gamemodes\unbekannt.pwn(17791) : error 017: undefined symbol "i"
C:\Users\Max\Desktop\[RoS]RealLife of San Andreas [0.3e]\[RoS]RealLife of San Andreas [0.3e]\gamemodes\unbekannt.pwn(17791) : error 029: invalid expression, assumed zero
C:\Users\Max\Desktop\[RoS]RealLife of San Andreas [0.3e]\[RoS]RealLife of San Andreas [0.3e]\gamemodes\unbekannt.pwn(17791) : 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.