Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ik heb geen nummer. #1

Open
PostbodeSiemen opened this issue Oct 16, 2020 · 0 comments
Open

Ik heb geen nummer. #1

PostbodeSiemen opened this issue Oct 16, 2020 · 0 comments

Comments

@PostbodeSiemen
Copy link
Owner

PostbodeSiemen commented Oct 16, 2020

Als je geen nummer hebt moet je de volgende stappen langs gaan:

Stap 1: Error
Staat er een error in je F8 of in de server console?

Stap 2: Database
Zorg dat het mogelijk is om 11 VARCHAR in je users tabel te hebben. Lukt het nog niet?
Zoek dan: gcphone/server/server.lua

function getPhoneRandomNumber()
    local numBase0 = math.random(06,06)
    local numBase1 = math.random(10000000,99999999)
    local num = string.format("%02d-%08d", numBase0, numBase1)

    return num
end

verander naar:

function getPhoneRandomNumber()
    local numBase0 = math.random(100,999)
    local numBase1 = math.random(0,9999)
    local num = string.format("%03d-%04d", numBase0, numBase1)

    return num
end

Stap 3: Internet
Zoek of mensen op het internet (github) hetzelfde probleem hebben.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant