DINI Saving Password Wrong
#6

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
Код:
public OnPlayerConnect(playerid)
{
    new file[100],Name[MAX_PLAYER_NAME],Ip[16];
    GetPlayerName(playerid,Name,sizeof(Name));
    GetPlayerIp(playerid,Ip,sizeof(Ip));
    format(file,sizeof(file),PlayerFile,Name);

    dini_IntSet(file,"Password",0);
         SendClientMessage(playerid,COLOUR_ORANGE,"Your username is not recognized on this server. Please /register to continue.");    }
    strcat(gPlayerInfo[playerid][PLAYER_NAME],dini_Get(file,"Name"));
    strcat(gPlayerInfo[playerid][PLAYER_IP],dini_Get(file,"Ip"));
    gPlayerInfo[playerid][PLAYER_REGGED] = dini_Int(file,"Registered");
    gPlayerInfo[playerid][PLAYER_PASS] = dini_Int(file,"Password");
    gPlayerInfo[playerid][PLAYER_LEVEL] = dini_Int(file,"Level");
    gPlayerInfo[playerid][PLAYER_WIRED] = dini_Int(file,"Wired");
    gPlayerInfo[playerid][PLAYER_JAILED] = dini_Int(file,"Jailed");
    if(gPlayerInfo[playerid][PLAYER_REGGED] == 0) SendClientMessage(playerid,COLOUR_ORANGE,"You're username is recognised on this server, but you have not registered. Please /register to continue.");
    else if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)SendClientMessage(playerid,COLOUR_ORANGE,"You're username is recognised on this server. Please /login to continue.");
    gPlayerInfo[playerid][PLAYER_REGGED] = 0;
    return 1;
}
To me it looks like you set their password to 0 when they connect?
Well Right now it thinks that in general i never registered
Reply


Messages In This Thread
DINI Saving Password Wrong - by HayZatic - 07.07.2011, 02:11
Re: DINI Saving Password Wrong - by Shadoww5 - 07.07.2011, 02:17
Re: DINI Saving Password Wrong - by HayZatic - 07.07.2011, 02:19
Re: DINI Saving Password Wrong - by [L3th4l] - 07.07.2011, 02:21
Re: DINI Saving Password Wrong - by Jack_Leslie - 07.07.2011, 02:26
Re: DINI Saving Password Wrong - by HayZatic - 07.07.2011, 02:47
Re: DINI Saving Password Wrong - by PCheriyan007 - 07.07.2011, 02:54

Forum Jump:


Users browsing this thread: 3 Guest(s)