PinDer Posted February 10, 2017 Report Share Posted February 10, 2017 (edited) Descrierea problemei: Nu se salveaza Tuning dupa /parkLiniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/pT8dXfSv http://pastebin.com/62HDjrya http://pastebin.com/F4KpcAGFImagini / Video (optional): - Ce am incercat sa fac: -diverse dar nimicAlte detalii: Multumesc. Edited February 10, 2017 by PinDer Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 Chiar acum, PinDer a spus: Descrierea problemei: Nu se salveaza Tuning dupa /parkLiniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/pT8dXfSv http://pastebin.com/62HDjrya http://pastebin.com/F4KpcAGFImagini / Video (optional): - Ce am incercat sa fac: -diverse dar nimicAlte detalii: Multumesc. Pai nu vad nicio salvare a tunning-ului in baza de date. ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 (edited) Cum salvez tunning in baza de date ? Edited February 10, 2017 by PinDer Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 Chiar acum, PinDer a spus: Cum salvez tunning in baza de date ? Pai masina, cum o tunezi? printr-o comanda? sau intr-un transfender? ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 intr-un transfender uite ca am adaugat video Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 Chiar acum, PinDer a spus: intr-un transfender uite ca am adaugat video Atunci te duci la OnVehicleMod Acolo faci salvarea componentelor. ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 (edited) Uite ce am eu la OnVehicleMod http://pastebin.com/LyvPwSDW (in GM) Edited February 10, 2017 by PinDer Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 Chiar acum, PinDer a spus: Uite ce am eu la OnVehicleMod http://pastebin.com/LyvPwSDW CMD:park(playerid, params[]) { new string[128], idd; if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: You aren't in any vehicle!"); new car = GetPlayerVehicleID(playerid); new car1 = PlayerInfo[playerid][pCarKey1], car2 = PlayerInfo[playerid][pCarKey2], car3 = PlayerInfo[playerid][pCarKey3], car4 = PlayerInfo[playerid][pCarKey4], car5 = PlayerInfo[playerid][pCarKey5]; new valid = PlayerInfo[playerid][pCarKey1] + PlayerInfo[playerid][pCarKey2] + PlayerInfo[playerid][pCarKey3] + PlayerInfo[playerid][pCarKey4] + PlayerInfo[playerid][pCarKey5]; if(valid == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Nu ai un vehicul personal!"); if(car == CarInfo[car1][Spawned]) idd = PlayerInfo[playerid][pCarKey1]; if(car == CarInfo[car2][Spawned]) idd = PlayerInfo[playerid][pCarKey2]; if(car == CarInfo[car3][Spawned]) idd = PlayerInfo[playerid][pCarKey3]; if(car == CarInfo[car4][Spawned]) idd = PlayerInfo[playerid][pCarKey4]; if(car == CarInfo[car5][Spawned]) idd = PlayerInfo[playerid][pCarKey5]; if(CarInfo[idd][Spawned] != car) return SendClientMessage(playerid, COLOR_YELLOW2, "Error: You aren't in that vehicle!"); if(idd == 0) return SendClientMessage(playerid, COLOR_YELLOW2, "Eroare: Acest vehicul nu iti apartine!"); new Float:x, Float:y, Float:z, Float:a; GetVehiclePos(car, x, y, z); GetVehicleZAngle(car, a); CarInfo[idd][cLocationx] = x; CarInfo[idd][cLocationy] = y; CarInfo[idd][cLocationz] = z; CarInfo[idd][cAngle] = a; DestroyVehicle(car); CarInfo[idd][Spawned] = CreateVehicle(CarInfo[idd][cModel],CarInfo[idd][cLocationx],CarInfo[idd][cLocationy],CarInfo[idd][cLocationz],CarInfo[idd][cAngle],CarInfo[idd][cColorOne],CarInfo[idd][cColorTwo],-1); SetVehicleNumberPlate(CarInfo[idd][Spawned], CarInfo[idd][cLicense]); mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Locationx='%f' WHERE ID=%d", CarInfo[idd][cLocationx], idd); mysql_tquery(SQL, string, "", ""); mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Locationy='%f' WHERE ID=%d", CarInfo[idd][cLocationy], idd); mysql_tquery(SQL, string, "", ""); mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Locationz='%f' WHERE ID=%d", CarInfo[idd][cLocationz], idd); mysql_tquery(SQL, string, "", ""); mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Angle='%f' WHERE ID=%d", CarInfo[idd][cAngle], idd); mysql_tquery(SQL, string, "", ""); mysql_format(SQL, string, sizeof(string), "UPDATE cars SET Spawned='%d' WHERE ID=%d", CarInfo[idd][Spawned], idd); mysql_tquery(SQL, string, "", ""); SetTunning(idd); GameTextForPlayer(playerid, "~w~You have parked your car at this spot.", 2000, 4); return 1; } Schimba comanda ta cu aceasta. ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 Nu merge, aceeasi poveste ca la inceput Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 (edited) Chiar acum, PinDer a spus: Nu merge, aceeasi poveste ca la inceput function SetTunning(idd) { new carid = CarInfo[idd][Spawned]; new engine,lights,alarm,doors,bonnet,boot,objective; GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(carid,0,lights,alarm,CarInfo[idd][cLock],bonnet,boot,objective); if(CarInfo[idd][mod0] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod0]); printf("%d", CarInfo[idd][mod0]); } if(CarInfo[idd][mod1] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod1]); printf("%d", CarInfo[idd][mod1]); } if(CarInfo[idd][mod2] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod2]); printf("%d", CarInfo[idd][mod2]); } if(CarInfo[idd][mod3] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod3]); printf("%d", CarInfo[idd][mod3]); } if(CarInfo[idd][mod4] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod4]); printf("%d", CarInfo[idd][mod4]); } if(CarInfo[idd][mod5] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod5]); printf("%d", CarInfo[idd][mod5]); } if(CarInfo[idd][mod6] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod6]); printf("%d", CarInfo[idd][mod6]); } if(CarInfo[idd][mod7] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod7]); printf("%d", CarInfo[idd][mod7]); } if(CarInfo[idd][mod8] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod8]); printf("%d", CarInfo[idd][mod8]); } if(CarInfo[idd][mod9] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod9]); printf("%d", CarInfo[idd][mod9]); } if(CarInfo[idd][mod10] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod10]); printf("%d", CarInfo[idd][mod10]); } if(CarInfo[idd][mod11] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod11]); printf("%d", CarInfo[idd][mod11]); } if(CarInfo[idd][mod12] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod12]); printf("%d", CarInfo[idd][mod12]); } if(CarInfo[idd][mod13] != 0) { AddVehicleComponent(carid,CarInfo[idd][mod13]); printf("%d", CarInfo[idd][mod13]); } SetVehicleNumberPlate(carid,CarInfo[idd][cLicense]); } foloseste comanda park, apoi da-mi valorile care ti le alarata in consola, da-mi server log defapt cu acele valori. Edited February 10, 2017 by Limited ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 Primesc Warning la Function SetTuning care miai dat tu sa adaug la mine in GM Link to comment Share on other sites More sharing options...
0 [RW]Kelton Posted February 10, 2017 Report Share Posted February 10, 2017 Gasesti pe net un Fs care te ajuta cu salvearea tuningului, revin cu edit + comanda rezolvata Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 10, 2017 Report Share Posted February 10, 2017 Acum 45 minute, PinDer a spus: trebuie aranjate, apesi tab unde scrie printf ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 10, 2017 Author Report Share Posted February 10, 2017 Oricum nu merge defapt se salveaza tuning daca despawnezi masina dupa /park si o spawnezi din nou doar ca culoarea nu se salveaza se schimba in alba Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 11, 2017 Report Share Posted February 11, 2017 Chiar acum, [RW]Kelton a spus: Gasesti pe net un Fs care te ajuta cu salvearea tuningului, revin cu edit + comanda rezolvata Tu asa faci pe serverul tau? iei Filterscripturi de pe net si le pui in gm? M-am lamurit si cu tine. Chiar acum, PinDer a spus: Oricum nu merge defapt se salveaza tuning daca despawnezi masina dupa /park si o spawnezi din nou doar ca culoarea nu se salveaza se schimba in alba Nu mi-ai dat debugg-ul cerut, acel warninguri, insemnau ca nu ai respectat oridinea liniilor. Eu ti-am facut debugg in acea functie, ca sa vad daca se acceseaza corect, astept valorile. ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 11, 2017 Author Report Share Posted February 11, 2017 Ce valori sa iti dau ? Link to comment Share on other sites More sharing options...
0 Daedric-Fox Posted February 11, 2017 Report Share Posted February 11, 2017 Chiar acum, PinDer a spus: Ce valori sa iti dau ? Ai inlcuit callback-ul tau SetTunning cu ce ti-am dat eu mai sus? Daca da, compileaza si porneste serverul, chiar daca iti ca da acele warninguri, nu e problema, porneste serverul, tuneaza masina si foloseste comanda /park, apoi in consola serverului iti vor aparea niste cifer, mi le dai, adica imi dai tot server log. ********************************** Servicii Scripting de calitate: ********************************* Future Project: ExpertGame ********************************* Link to comment Share on other sites More sharing options...
0 PinDer Posted February 11, 2017 Author Report Share Posted February 11, 2017 ok..imediat Link to comment Share on other sites More sharing options...
0 PinDer Posted February 12, 2017 Author Report Share Posted February 12, 2017 Uite server_log Link to comment Share on other sites More sharing options...
0 PinDer Posted February 12, 2017 Author Report Share Posted February 12, 2017 http://pastebin.com/8DM6qMYu Link to comment Share on other sites More sharing options...
0 PinDer Posted February 12, 2017 Author Report Share Posted February 12, 2017 Link to comment Share on other sites More sharing options...
Question
PinDer
Descrierea problemei: Nu se salveaza Tuning dupa /park
Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/pT8dXfSv http://pastebin.com/62HDjrya http://pastebin.com/F4KpcAGF
Imagini / Video (optional): -
Ce am incercat sa fac: -diverse dar nimic
Alte detalii: Multumesc.
Link to comment
Share on other sites
21 answers to this question
Recommended Posts