- 0
Problema cumparare crates
-
Similar Content
-
- 2 replies
- 500 views
-
- 7 answers
- 1,779 views
-
- 3 answers
- 1,944 views
-
- 3 replies
- 248 views
-
- 1 reply
- 201 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Alexandru Alex
Cand dau sa cumpar crate cu bp imi zice ca nu ai suficente bp-uri iar cand ma uit in /opencrate imi arata ca e acolo:
case DIALOG_BUYCRATES: { if(!response) return true; format(gString, sizeof(gString), "Payment\tPrice\nBlack-Points\t{E26AF2}%d\nPremium Points\t{EEEE3F}%d", CratePrice[AlegeCrates[playerid]][0], CratePrice[AlegeCrates[playerid]][1]); ShowPlayerDialogEx(playerid, DIALOG_BUYCRATES1, DIALOG_STYLE_TABLIST_HEADERS, "Buy Crate", gString, "Da", "nu"); } case DIALOG_BUYCRATES1: { if(!response) return true; new x = AlegeCrates[playerid]; playerVariables[playerid][pCrates][x] ++; save_crates(playerid); switch(listitem) { case 0: { if(playerVariables[playerid][pBlackPoints] < CratePrice[x][0]) return SCM(playerid, -1, "Nu ai suficente puncte Black"); playerVariables[playerid][pBlackPoints] -= CratePrice[x][0]; format(gString, sizeof(gString), "(Crate Systems){FFFFFF} Ti-ai cumparat o cutie (%s) pentru {E26AF2}%d Black Points{FFFFFF}! Total cutii rare: %d [%d total - general]", CrateName[x], CratePrice[x][1], playerVariables[playerid][pCrates][x], totalcrates(playerid)+1); Update(playerid, pBlackPoints); } case 1: { if(playerVariables[playerid][pPremiumPoints] < CratePrice[x][1]) return SCM(playerid, -1, "Nu ai suficiente puncte Premium."); playerVariables[playerid][pPremiumPoints] -= CratePrice[x][1]; format(gString, sizeof(gString), "(Crate Systems){FFFFFF} Ti-ai cumparat o cutie (%s) pentru {EEEE3F}%d PP{FFFFFF}! Total cutii rare: %d [%d total - general]", CrateName[x], CratePrice[x][1], playerVariables[playerid][pCrates][x], totalcrates(playerid)+1); Update(playerid, pPremiumPoints); } } SCM(playerid, -1, "Pentru a deschide o cuite, foloseste /opencrate."); }
0 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