PDA

View Full Version : Skin saving in database is making bug


Fernado Samuel
21/11/2012, 09:30 AM
Removed

Konstantinos
21/11/2012, 09:38 AM
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.

Fernado Samuel
21/11/2012, 09:42 AM
Removed

Skimmer
21/11/2012, 09:47 AM
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.
INSERT INTO users (username, password, skin) VALUES ('Hey', 'nigga', 1)
Or use UPDATE command.

Fernado Samuel
21/11/2012, 09:52 AM
Removed

Fernado Samuel
21/11/2012, 10:55 AM
anyone?

Fernado Samuel
22/11/2012, 11:21 PM
help