Arbend zusammen habe kleines Problem mit mein Command
schaut euch das selber an bitte an brauche echt hilfe
if(strcmp(cmd, "/kick", true) == 0) {
if(playername[playerid][AdmLvl] >= 1){
cmd = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, red, "=> Benutze: /kick [playerid] [Grund]");
return 1; }
new player1;
player1 = strval(tmp);
tmp = strtok(cmdtext, idx);
GetPlayerName(player1, playername12, sizeof(playername12)); GetPlayerName(playerid, adminname, sizeof(adminname));
format(string,256,"=> %s wurde von Admin ( %s ) gekickt! [Grund: %s] ",playername12,adminname,cmdtext[7]); SendClientMessageToAll(grey,string);
SaveToFile("KickLog",string); Kick(player1);
} else {
SendClientMessage(playerid,red,"=> Fehler: Dein Admin Level ist zu niedrig!");
}
return 1;
}
ZitatAlles anzeigen
warning 217: loose indentation
error 001: expected token: ")", but found "["
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
fatal error 107: too many error messages on one line