Skin saving in database is making bug - 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 in database is making bug (
/showthread.php?tid=394103)
Skin saving in database is making bug -
Fernado Samuel - 21.11.2012
Removed
Re: Skin saving in database is making bug -
Konstantinos - 21.11.2012
Let players select their skin on the skin selection if they're going to register and insert into the database the default value as '0'. Then on spawn, get player's skin and insert the new skin id.
Also, about the players who are already registered, let them select their skin too and check on spawn. If the skin is 0, set the saved skin, if the skin is not equal to 0, let them spawn with that new skin and insert it on the database.
Re: Skin saving in database is making bug -
Fernado Samuel - 21.11.2012
Removed
AW: Skin saving in database is making bug -
Skimmer - 21.11.2012
He means like this, example your standard skin (first skin in class selection) is ID
1.
Change the value on Database automatically to 1, if the player register successfull.
pawn Код:
INSERT INTO users (username, password, skin) VALUES ('Hey', 'nigga', 1)
Or use UPDATE command.
Re: Skin saving in database is making bug -
Fernado Samuel - 21.11.2012
Removed
Re: Skin saving in database is making bug -
Fernado Samuel - 21.11.2012
anyone?
Re: Skin saving in database is making bug -
Fernado Samuel - 22.11.2012
help