- 0
Problema salvarea in baza de date
-
Similar Content
-
- 7 replies
- 737 views
-
- 3 answers
- 351 views
-
- 1 answer
- 372 views
-
- 8 answers
- 810 views
-
Problema billboards (la expirarea billboard-ului nu seteaza variabila Billboard 0 jucatorului offline)
By cstef4n,
- 2 answers
- 556 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
GEORGIKAA
Am incercat sa fac recent un sistem de crates insa am intampinat o problema la salvarea in baza de date, mai exact nu se salveaza atunci cand le achizitionezi si dai /q.
In baza de date am adaugat urmatoarele: NormalCrate, INT(11), default as none
aici e codul din script prin care ar trebui sa adauge salvarea in baza de date
if(dialogid == DIALOG_NORMALCRATE) { if(response) { switch(listitem) { case 0: { SendClientMessage(playerid, -1, "in lucru"); } case 1: { if(PlayerInfo[playerid][pPremiumPoints] < 100) return SCM(playerid, -1, "{008080}>> NORMAL CRATE: {FFFFFF}You don't have 100 premium points."); PlayerInfo[playerid][pPremiumPoints] -= 100; Update(playerid, pPremiumPoints); PlayerInfo[playerid][pNormalCrate] ++; Update(playerid, pNormalCrate); SCM(playerid, -1, "{008080}>> CRATES: {FFFFFF}You succesfully bought a NORMAL crate for 100 premium points."); } } } }3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now