- 0
Nu se schimba pretul de la /bizfee
-
Similar Content
-
- 4 replies
- 971 views
-
- 1 reply
- 656 views
-
- 18 replies
- 3.392 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Jimmi
Problema intalnita (descriere):ă:Am trecut biz-urile si sbiz-urile pe mysql.Acum cand folosesc /bizfee nu se mai actualizeaza pretul de intrare in biz/sbiz.
Ero(area / rile) / warning-(ul / urile):
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da
if(strcmp(cmd, "/bizfee", true) == 0) { if(IsPlayerConnected(playerid)) { new bouse = PlayerInfo[playerid][pPbiskey]; new query[256]; if (bouse == 255) return SendClientMessage(playerid, COLOR_GRAD2, " Nu detii o afacere !"); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "{00FF00}Folosire:{FFFFFF} /bizfee [EntranceFee]"); if(strval(tmp) < 0 || strval(tmp) > 2000) return SendClientMessage(playerid, COLOR_WHITE, "Suma minima este de $0, suma maxima este de $2000."); if (bouse >= 100) { if(bouse == 102) { if(strval(tmp) > 0 && strval(tmp) < 51) { } else { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Phone Company: {FFFFFF} /bizfee poate fi maxim 50!"); return 1; } } if(bouse == 103) { if(strval(tmp) > 0 && strval(tmp) < 51) { } else { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Gas Company: {FFFFFF} /bizfee poate fi maxim 50!"); return 1; } } if(bouse == 104) { if(strval(tmp) > 0 && strval(tmp) < 101) { } else { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Electricity Company: {FFFFFF} /bizfee poate fi maxim 100!"); return 1; } } if(bouse == 106 || bouse == 107) { if(strval(tmp) > 0 && strval(tmp) < 51) { } else { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}CNN: {FFFFFF} /bizfee poate fi maxim 50!"); return 1; } } SBizzInfo[bouse-100][sbEntranceCost] = strval(tmp); format(string, sizeof(string), "Pretul de intrare a fost setat pe $%d.", SBizzInfo[bouse-100][sbEntranceCost]); OnPropUpdate(); SendClientMessage(playerid, COLOR_WHITE, string); } else { if(bouse >= 5 && bouse <= 11 || bouse >= 19 && bouse <= 25) { if(strval(tmp) > 0 && strval(tmp) < 501) { } else { SendClientMessage(playerid, COLOR_WHITE, "{0066FF}24/7: {FFFFFF} /bizfee poate fi maxim 500!"); return 1; } } BizzInfo[bouse][bEntranceCost] = strval(tmp); format(string, sizeof(string), "Pretul de intrare a fost setat pe $%d.", BizzInfo[bouse][bEntranceCost]); OnPropUpdate(); SendClientMessage(playerid, COLOR_WHITE, string); format(query,sizeof(query),"UPDATE `bizz` SET `ePrice`='%s'",BizzInfo[bouse][bEntranceCost]); mysql_query(query); } } return 1; }30 answers to this question
Recommended Posts