Skin saving/loading
#1

------
Reply
#2

Yes , code is needed please ..
Reply
#3

If its loading with the default number on a variable (0) it will set to 0.


Post some code
Reply
#4

------
Reply
#5

Can you post the login dialog?
Reply
#6

------
Reply
#7

^ As in let us see the code where you load the variables from the database
Reply
#8

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
pawn Код:
if(dialogid == Login)
        {
            if (!response) return Kick(playerid);
            if(response)
            {
                if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
                {
                    new string[75];
                    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
                    GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
                    SetPlayerScore(playerid,PlayerInfo[playerid][pLevel]);
                    format(string,sizeof(string),"Welcome back to ******, {FFFF00}%s{FFFFFF}.",sendername(playerid));
                    MSG(playerid,WHITE,string);
                    PlayerInfo[playerid][pLogged] = 1;
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Account Login","You have entered an invalid password.\nType your password below to login.","Login","Quit");
                }
                return 1;
            }
        }
    }
It has nothing to do with it, but anyways.
oh well show me the callback that loads the data (Probably Load_User)
Reply
#9

------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)