Closed IndigoBerry closed 1 year ago
Hi!
Use database prefix. Example :
"database": { "useIdentifierPrefix": true, "playerTable": "users", "identifierColumn": "identifier", "identifierType": "char1", --- this line "profileQueries": true, "phoneNumberColumn": "phone_number" },
and dont forget alter your users phone_number field to varchar(20)
Regards. Adam
im also getting a error for this but i did what u said and nothing still gives a error or phone doesnt work at all
im also getting a error for this but i did what u said and nothing still gives a error or phone doesnt work at all
You updated phone_number field type to varchar20 ?
I have the exact same mistake and did it almost exactly as they wrote it down.
im also getting a error for this but i did what u said and nothing still gives a error or phone doesnt work at all
You updated phone_number field type to varchar20 ?
Hey mate, I've followed your guide, I can't get this to work, Still get this error after the fix you provided. Do you mind sharing some more help for this ?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I know I'm a bit late to this, but you need to install https://github.com/project-error/pe-core, this will put an identifier in your users table so that npwd can use that to link a phone number to a user.
See: https://projecterror.dev/docs/npwd/start/installation#basic-configuration
It says it in the caution area.
Development Issue
Unsure
Phone Version
1.6.1
Issue Description
I dont know what i did wrong but when somebody joins my server it says this in the console: [ script:npwd] [NPWD] [player] [error]: Failed to store phone number in database [ script:npwd] [NPWD] [player] [error]: UPDATE users SET phone_number = 675-743-9363 WHERE identifier = eef92ab7dcef11325680163d0653768e80a43f14
i also get in oxymysql this: [ script:oxmysql] SCRIPT ERROR in promise (unhandled): Error: pe-core was unable to execute a query! [ script:oxmysql] Data too long for column 'identifier' at row 1 [ script:oxmysql] INSERT INTO ?? (??,??) VALUES (?,?) ["users","identifier","phone_number","license:372611967ce989ed30f3d3ffc6a921641a3f4848","200-983-3386"] [ script:oxmysql] > (@oxmysql/dist/build.js:21786)
[ script:oxmysql] > processTicksAndRejections (node:internal/process/task_queues:96)
[ script:oxmysql] > async rawQuery (@oxmysql/dist/build.js:21755)
[ script:oxmysql]
Issue Reproduction
Evidence