Skin saving/loading - 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: Skin saving/loading (
/showthread.php?tid=493931)
Skin saving/loading -
Beckett - 10.02.2014
------
Re: Skin saving/loading -
Sawalha - 10.02.2014
Yes , code is needed please ..
Re: Skin saving/loading -
Shockey HD - 10.02.2014
If its loading with the default number on a variable (0) it will set to 0.
Post some code
Re: Skin saving/loading -
Beckett - 10.02.2014
------
Re: Skin saving/loading -
Kirollos - 10.02.2014
Can you post the login dialog?
Re: Skin saving/loading -
Beckett - 10.02.2014
------
Re: Skin saving/loading -
Shockey HD - 10.02.2014
^ As in let us see the code where you load the variables from the database
Re: Skin saving/loading -
Kirollos - 10.02.2014
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)
Re: Skin saving/loading -
Beckett - 10.02.2014
------