- 0
Problema salvarea in baza de date
-
Similar Content
-
baza de date
By tyur21a,
- 3 answers
- 218 views
-
- 2 replies
- 205 views
-
- 5 replies
- 2,470 views
-
- 4 replies
- 1,061 views
-
Problema turf
By Soryn.,
- 2 answers
- 212 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."); } } } }
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.