SA-MP Forums Archive
another problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: another problem (/showthread.php?tid=259377)



another problem - Trotty729 - 04.06.2011

i has followed everything on wiki but still i get errors here is errors and script

pawn Код:
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.
Script:
http://pastebin.com/K679Eb24


Re: another problem - Trotty729 - 04.06.2011

bump


Re: another problem - Jay. - 04.06.2011

Quote:
Originally Posted by Trotty729
Посмотреть сообщение
bump
Bump is every 12 hours!(I think) You should learn to wait like we all have to do


Re: another problem - Trotty729 - 04.06.2011

Quote:
Originally Posted by Funtime
Посмотреть сообщение
Bump is every 12 hours! You should learn to wait like we all have to do
sorry if i made you angry


Re: another problem - alpha500delta - 04.06.2011

Well, you have added the defines for the commands in DCMD, but you did not add the commands itself yet, so that won't work.

Also, this

pawn Код:
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);
    }
Won't work as you did not put it in a command, it's just floating somewhere in OnPlayerCommandText.

To fix them, just add the commands and put that code ^ in a command.

Edit: also remove

pawn Код:
return 0;
From under the DCMD stuff. You should learn scripting before trying such things