SA-MP Forums Archive
Problems with account saving - 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)
+--- Thread: Problems with account saving (/showthread.php?tid=497944)



Problems with account saving - RaZZ0r - 01.03.2014

Hey, when you sign up in game, your account will be register, but when you log off, you gotta register again
I need help.


Re: Problems with account saving - Equuuuin0X - 01.03.2014

show me your OnPlayerDisconnect


Re: Problems with account saving - RaZZ0r - 01.03.2014

pawn Код:
}
//==============================================================================
//When Player Disconnects from the server
//==============================================================================
public OnPlayerDisconnect(playerid, reason)
{
    SendDisconnect(playerid, reason);



Re: Problems with account saving - Equuuuin0X - 01.03.2014

show me your enums info please onplayerconnect and dialogreponse of register

I'll fix it right away


Re: Problems with account saving - RaZZ0r - 01.03.2014

pawn Код:
//==============================================================================
//Enum's
//==============================================================================
enum
{
    CommonRed = 19006, CommonOrange, CommonGreen, CommonBlue, CommonPurple,
    CommonEspiral, CommonBlack, CommonEyes, CommonXadrex, CommonTransparent,
    CommonXRayVision, SquareFormatYellow, SquareFormatOrange, SquareFormatRed,
    SquareFormatBlue, SquareFormatGreen, RayBanGray, RayBanBlue, RayBanPurple,
    RayBanPink, RayBanRed, RayBanOrange, RayBanYellow, RayBanGreen, CircularNormal,
    CircularYellow, CircularRed, CircularBlack, CircularXadrex, CircularThunders,
    CopGlassesBlack = 19138, CopGlassesRed = 19139, CopGlassesBlue = 19140,
};
//------------------------------------------------------------------------------
enum textd
{
    hide, ntag,
};
//------------------------------------------------------------------------------
enum DMEnum
{
    MG1, MG2, MG3, KDM, HP, GDM, JDM, PDM,
};
//------------------------------------------------------------------------------
enum HEnum
{
    Slot, Obj0, Obj1, Obj2, Obj3, Obj4, Obj5, Obj6, Obj7, Obj8, Obj9, Bone,
    Hld0[256], Hld1[256], Hld2[256], Hld3[256], Hld4[256], Hld5[256], Hld6[256],
    Hld7[256], Hld8[256], Hld9[256], HShow,
};
//------------------------------------------------------------------------------
I have the vehicles too but there's too much of them.


Re: Problems with account saving - Equuuuin0X - 01.03.2014

No, give me the enums of your pInfo or PlayerInfo or whatever you put there.

example:

pawn Код:
// Enums
enum PlayerData
{
    Registered,
    LoggedIn,
    Level,
    Helper,
    Tag,
    dRank,
    Muted,
    Caps,
    Jailed,
    JailTime,
    Frozen,
    FreezeTime,
    Kills,
    Deaths,
    hours,
    mins,
    secs,
    TotalTime,
    ConnectTime,
    MuteWarnings,
    Warnings,
    Spawned,
    TimesSpawned,
    God,
    GodCar,
    DoorsLocked,
    SpamCount,
    SpamTime,
    PingCount,
    PingTime,
    BotPing,
    blip,
    blipS,
    pPing[PING_MAX_EXCEEDS],
    pColour,
    pCar,
    SpecID,
    SpecType,
    OnDuty,
    bool:AllowedIn,
    FailLogin,
    Prestige1,
    Prestige2
};
new PlayerInfo[MAX_PLAYERS][PlayerData];



Re: Problems with account saving - RaZZ0r - 01.03.2014

I don't have them, I think that's the problem :S I can't find them


Re: Problems with account saving - Equuuuin0X - 01.03.2014

Yes, that's the problem.

do you have the register dialogs,yet ?

I'll give you a basic register/login saving system,alright ?


Re: Problems with account saving - RaZZ0r - 01.03.2014

Yeah sure but I'm kinda new at this and I kinda need help how to put it on, thank you.


Re: Problems with account saving - Equuuuin0X - 01.03.2014

http://pastebin.com/XKTAtgzq

I've put little admin system for you, for pAdmin enums example.

Enjoy learning .