Gute Nacht,
ich halte mich mal kurz und poste nur die Fehlermeldungen & den Quellcode, ich hoffe Ihr könnt mir helfen!
ZitatAlles anzeigen*.pwn(6773) : error 035: argument type mismatch (argument 2)
*.pwn(33482) : warning 219: local variable "string" shadows a variable at a preceding level
*.pwn(55768) : warning 203: symbol is never used: "PlayerPos"
*.pwn(55768) : warning 203: symbol is never used: "idletime"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success) //If the password was incorrect
{
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
{
SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
Ban(i); //They are now banned.
if(PlayerInfo[i][pAdmin] >= 2000)
{
new string[256];
format(string,"Der User mit der IP: %s wollte sich als Rcon mit dem Passwort %s einloggen.",ip, password);
SendClientMessage(i,0xCD0000FF,string);
}
}
}
}
return 1;
}
(Original Rcon Script von hier)
//Edit: Einige Fehler schon gefixxt, Quellcode & Fehler aktualisiert.