Skin saving in database is making bug
#1

Removed
Reply
#2

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.
Reply
#3

Removed
Reply
#4

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.
Reply
#5

Removed
Reply
#6

anyone?
Reply
#7

help
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)