Undefined symbols
#6

i got this OnPlayerConnect
pawn Код:
public OnPlayerConnect(playerid)
{
   
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    if(!fexist(user_ini_file(playerid)))
    {
        new INI:ini=INI_Open(user_ini_file(playerid));
        INI_WriteString(ini,"Name",name);
        INI_WriteString(ini,"Registered:","-1");
        INI_WriteString(ini,"Password:","");
        INI_WriteString(ini,"Admin:","-1");
        INI_WriteString(ini,"Logged in:","-1");
        INI_Close(ini);
    }
}
And this on the command that gives me the error:
pawn Код:
new pass[128];
    INI_Load(user_ini_file(playerid));
    INI_Int("Registered:",PlayerInfo[playerid][PLAYER_REGGED]);
    if(PlayerInfo[playerid][PLAYER_REGGED]==1) return SendClientMessage(playerid,0x00FF00FF,"You are already registered");
    if(sscanf(params,"s",pass))SendClientMessage(playerid,0x00FF00FF,"/register pass");
    else
    {
            new INI:ini=INI_Open(user_ini_file(playerid));
            INI_WriteString(ini,"Password:",pass);
            INI_RemoveEntry(ini,"Registered:");
            INI_WriteInt(ini,"Registered:",1);
            INI_Close(ini);
            PlayerInfo[playerid][PLAYER_REGGED]=1;
            PlayerInfo[playerid][PLAYER_LOGGED]=1;
            format(PlayerInfo[playerid][PLAYER_PASS],50,"%s",pass);

    }
    return 1;
Reply


Messages In This Thread
Undefined symbols - by dusk - 10.02.2013, 18:39
Re: Undefined symbols - by dusk - 11.02.2013, 09:54
Re: Undefined symbols - by batonsa - 11.02.2013, 09:56
Re: Undefined symbols - by Bikken - 11.02.2013, 09:59
Re: Undefined symbols - by dusk - 11.02.2013, 10:01
Re: Undefined symbols - by dusk - 11.02.2013, 11:12
Re: Undefined symbols - by dusk - 11.02.2013, 11:37

Forum Jump:


Users browsing this thread: 1 Guest(s)