C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(124) : error 017: undefined symbol "dcmd_register"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(125) : error 017: undefined symbol "dcmd_login"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(126) : error 017: undefined symbol "dcmd_logout"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(127) : error 017: undefined symbol "dcmd_password"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(130) : warning 225: unreachable code
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(132) : error 017: undefined symbol "params"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(132) : warning 215: expression has no effect
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(132) : error 001: expected token: ";", but found "]"
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(132) : error 029: invalid expression, assumed zero
C:\Users\Trottsworth\Desktop\Freeroam Server\filterscripts\Admin.pwn(132) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
Bump is every 12 hours! You should learn to wait like we all have to do
|
if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered!");
else if(!params[0])
return SendClientMessage(playerid, COLOUR_ORANGE, "USAGE: /register [password]");
else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
{
new string[128];
format(string, sizeof(string), "ERROR: Password must be between %d and %d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
return SendClientMessage(playerid, COLOUR_ORANGE, string);
}
else
{
new password = num_hash(params);
gPlayerInfo[playerid][PLAYER_PASS] = password;
gPlayerInfo[playerid][PLAYER_REGGED] = 1;
gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
new string[128]; format(string, sizeof(string), "You have successfully registered your account with the password \'%s\'. You have been automatically logged in.", params);
return SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
}
return 0;