Changename command help
#1

HEllo i have made a changename command but i am having a problem with it
i get these errors that i dont understand some one help please

Code:
: warning 219: local variable "PlayerName" shadows a variable at a preceding level
 : error 017: undefined symbol "Account"
 : warning 215: expression has no effect
 : error 001: expected token: ";", but found "]"
 : error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line
Here its the command

Code:
COMMAND:changepass(playerid, params[])
{
    new file[30], PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
    if(Account[playerid][Logged] != 1) return SendClientMessage(playerid,Red,"You are not logged in, so you can't use this command!")
    if(strlen(params) >= 3)
    {
        format(file, sizeof(file), "Accounts/%s.txt", PlayerName);
        WP_Hash(buf, sizeof(buf), params);
        dini_Set(file, "Password");
        SendClientMessage(playerid,Green, "Your password has been succesfull changed!");
    }
    else
    {
        SendClientMessage(playerid, Red, "Your password need to be atleast 3 characters long!");
    }
    return 1;
}
Reply


Messages In This Thread
Changename command help - by Diti1 - 14.11.2014, 12:04
Re: Changename command help - by X337 - 14.11.2014, 12:14
Re: Changename command help - by Diti1 - 14.11.2014, 12:22
Re : Changename command help - by Dutheil - 14.11.2014, 13:45
Re: Changename command help - by Diti1 - 14.11.2014, 14:07
Re : Re: Changename command help - by Dutheil - 14.11.2014, 14:22
Re: Changename command help - by Diti1 - 14.11.2014, 14:32
Re : Changename command help - by Dutheil - 14.11.2014, 14:42
Re: Changename command help - by Diti1 - 14.11.2014, 14:45
Re : Changename command help - by Dutheil - 14.11.2014, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)