28.03.2020, 19:39
Quote:
Code:
if(PlayerInfo[playerid][AdminLevel] > 0) { else if(IsPlayerAdmin(playerid)) { admrank = "{FF0000}[RCON Admin]"; } else { switch(PlayerInfo[playerid][AdminLevel]) { case 1: admrank = "{FFFF00}[Moderator]"; case 2: admrank = "{008000}[Administrator]"; case 3: admrank = "{3366FF}[Manager]"; } } format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{00FF00} %s {FFFFFF}%s (%d) {00FF00}has joined the server!", admrank, pname, playerid); SendClientMessageToAll(COLOR_LIME, string); } else { format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{FFFFFF} %s (%d) {00FF00}has joined the server!", pname, playerid); SendClientMessageToAll(COLOR_LIME, string); } } else { format(string, sizeof(string), "{FFFFFF}Welcome, the account \"{FF0000}%s{FFFFFF}\" is not registered.\nIn order to play, you must register by typing a password below.", pname); ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "{FF0000}Registration", string, "Okay", "Quit"); format(string, sizeof(string), "{A9A9A9}[{00FF00}+{A9A9A9}]{00FF00} \"{FFFFFF}%s{00FF00}\" (%d) has joined the server for the first time!", pname, playerid); } return 1; } |
it has errors, here they are:
pawn Code:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "if"