Bekomme immer diese 4 Errors.. -.- Kann sie aber nicht fixen..
C:\Users\muhammed\Desktop\samp\gamemodes\LVScript.pwn(719) : error 012: invalid function call, not a valid address
C:\Users\muhammed\Desktop\samp\gamemodes\LVScript.pwn(719) : warning 215: expression has no effect
C:\Users\muhammed\Desktop\samp\gamemodes\LVScript.pwn(719) : error 001: expected token: ";", but found ")"
C:\Users\muhammed\Desktop\samp\gamemodes\LVScript.pwn(719) : error 029: invalid expression, assumed zero
C:\Users\muhammed\Desktop\samp\gamemodes\LVScript.pwn(719) : fatal error 107: too many error messages on one line
if(strcmp(cmd, "/ipban", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid,COLOR_WHITE,"Dein Admin Level ist zu niedrig.");
new tmp[256]; tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Benutze: /ipban [id] [Grund]");
new giveplayerid = ReturnUser(tmp); (Fehlerzeile)
if(playerid == giveplayerid) return SendClientMessage(playerid, COLOR_WHITE, "Du kannst dich nicht selber bannen.");
tmp = fstrtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "Benutze: /ipban [id] [Grund]");
if(IsPlayerConnected(giveplayerid))
{
new string[256]; format(string, sizeof(string), "%s wurde von %s IP gebannt. Grund: %s", GetName(giveplayerid), GetName(playerid), tmp);
SendClientMessageToAll(COLOR_ADMIN_RED, string); PlayerInfo[giveplayerid][pBanned] = 1; BanEx(giveplayerid, tmp);
}
}
return 1;
}
Könnte mir jemand dabei helfen bitte?