Extremys Posted March 8, 2016 Report Share Posted March 8, 2016 (edited) Problema intalnita (descriere):Cand cumpar un vehicul cu Puncte Premium imi dispare contul premium. Ero(area / rile) / warning-(ul / urile):- Liniile de cod / sursa / script-ul(obligatoriu): Spoiler if(dialogid == DIALOG_BUYCAR_MUSCLE) { if(!response) return 1; if(response) { switch(listitem) { case 0: { if(PlayerInfo[playerid][pPremiumPoints] >= 100) { PurchaseVehicleFromDealer(playerid, 469, 0, 100); PlayerInfo[playerid][pPremiumPoints] -= 100; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 1: { if(PlayerInfo[playerid][pPremiumPoints] >= 100) { PurchaseVehicleFromDealer(playerid, 487, 0, 100); PlayerInfo[playerid][pPremiumPoints] -= 100; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 2: { if(PlayerInfo[playerid][pPremiumPoints] >= 100) { PurchaseVehicleFromDealer(playerid, 494, 0, 100); PlayerInfo[playerid][pPremiumPoints] -= 100; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 3: { if(PlayerInfo[playerid][pPremiumPoints] >= 50) { PurchaseVehicleFromDealer(playerid, 481, 0, 50); PlayerInfo[playerid][pPremiumPoints] -= 50; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 200 premium points!"); } } case 4: { if(PlayerInfo[playerid][pPremiumPoints] >= 50) { PurchaseVehicleFromDealer(playerid, 510, 0, 50); PlayerInfo[playerid][pPremiumPoints] -= 50; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 200 premium points!"); } } case 5: { if(PlayerInfo[playerid][pPremiumPoints] >= 50) { PurchaseVehicleFromDealer(playerid, 434, 0, 50); PlayerInfo[playerid][pPremiumPoints] -= 50; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 6: { if(PlayerInfo[playerid][pPremiumPoints] >= 75) { PurchaseVehicleFromDealer(playerid, 444, 0, 75); PlayerInfo[playerid][pPremiumPoints] -= 75; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 7: { if(PlayerInfo[playerid][pPremiumPoints] >= 75) { PurchaseVehicleFromDealer(playerid, 556, 0, 75); PlayerInfo[playerid][pPremiumPoints] -= 75; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } case 8: { if(PlayerInfo[playerid][pPremiumPoints] >= 75) { PurchaseVehicleFromDealer(playerid, 557, 0, 75); PlayerInfo[playerid][pPremiumPoints] -= 75; } else { SendClientMessage(playerid, COLOR_RED, "You don't have 100 premium points!"); } } } } return 1; } Imagini / Video (optional):- Ati incercat sa rezolvati singur?:Nustiu ce sa modific Si comanda /buycar: Spoiler if(strcmp(cmd, "/buycar", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 6.0,329.3534,-1511.9949,36.039))// { if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,COLOR_WHITE,"Nu ai level 3."); ShowPlayerDialog(playerid, DIALOG_BUYCAR, DIALOG_STYLE_LIST, "SERVER: Vehicle Dealership", "Cheap Vehicles\nNormal Vehicles\nExpensive Vehicles\nLux Vehicles\nMotorcycles\nPremium Vehicles", "Select", "Cancel"); } else return SCM(playerid,COLOR_WHITE,"Nu esti la dealership."); return 1; } Serverul nu ruleaza mysql Edited March 8, 2016 by Extremys Am uitat ceva Link to comment Share on other sites More sharing options...
0 Extremys Posted March 8, 2016 Author Report Share Posted March 8, 2016 Am rezolvat T/C Link to comment Share on other sites More sharing options...
Question
Extremys
Problema intalnita (descriere):Cand cumpar un vehicul cu Puncte Premium imi dispare contul premium.
Ero(area / rile) / warning-(ul / urile):-
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Nustiu ce sa modific
Si comanda /buycar:
Serverul nu ruleaza mysql
Edited by ExtremysAm uitat ceva
Link to comment
Share on other sites
1 answer to this question
Recommended Posts