Jump to content

Jizzy.

Membru
  • Content Count

    18
  • Joined

  • Last visited

Community Reputation

0 Neutru

About Jizzy.

  • Rank
    Membru

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Jizzy.

    Problema vehicule

    Am rezolvat problema, multumesc oricum.
  2. Jizzy.

    Problema vehicule

    Salut. Am incercat sa adaug un sistem de vehicule dar nu inteleg de ce nu se actualizeaza datele in baza de date. O sa va las script-ul mai jos: function LoadVehicles() { Vehicless = cache_num_rows(); new str[30]; for(new i = 0; i <= Vehicless; i++) { VehicleInfo[i][vehModel] = cache_get_field_content_int(i, "Model"); VehicleInfo[i][vehColor1] = cache_get_field_content_int(i, "Color1"); VehicleInfo[i][vehColor2] = cache_get_field_content_int(i, "Color2"); VehicleInfo[i][vehGroup] = cache_get_field_content_int(i, "Group"); VehicleInfo[i][vehRank] = cache_get_field_content_int(i, "Rank"); VehicleInfo[i][vehRotation] = cache_get_field_content_float(i, "Rotation"); VehicleInfo[i][vehPosX] = cache_get_field_content_float(i, "PosX"); VehicleInfo[i][vehPosY] = cache_get_field_content_float(i, "PosY"); VehicleInfo[i][vehPosZ] = cache_get_field_content_float(i, "PosZ"); VehicleInfo[i][vehCarIDD] = cache_get_field_content_int(i, "ID"); if(VehicleInfo[i][vehColor1] < 0) VehicleInfo[i][vehColor1] = random(126); if(VehicleInfo[i][vehColor2] < 0) VehicleInfo[i][vehColor2] = random(126); if(VehicleInfo[i][vehGroup] == 8 && VehicleInfo[i][vehModel] == 411 || VehicleInfo[i][vehGroup] == 2 && VehicleInfo[i][vehModel] == 541 || VehicleInfo[i][vehGroup] == 1 && VehicleInfo[i][vehModel] == 411 || VehicleInfo[i][vehGroup] == 8 && VehicleInfo[i][vehModel] == 468 || VehicleInfo[i][vehGroup] == 8 && VehicleInfo[i][vehModel] == 470) { VehicleInfo[i][vehCarID] = CreateVehicle(VehicleInfo[i][vehModel], VehicleInfo[i][vehPosX], VehicleInfo[i][vehPosY], VehicleInfo[i][vehPosZ], VehicleInfo[i][vehRotation], VehicleInfo[i][vehColor1], VehicleInfo[i][vehColor2], 1800, 1); } else { VehicleInfo[i][vehCarID] = CreateVehicle(VehicleInfo[i][vehModel], VehicleInfo[i][vehPosX], VehicleInfo[i][vehPosY], VehicleInfo[i][vehPosZ], VehicleInfo[i][vehRotation], VehicleInfo[i][vehColor1], VehicleInfo[i][vehColor2], 1800); } if(VehicleInfo[i][vehGroup] == 0) { format(str,sizeof(str),"%d",i+1); SetVehicleNumberPlate(VehicleInfo[i][vehCarID],str); } else if(VehicleInfo[i][vehGroup] > 0) { if(VehicleInfo[i][vehGroup] > 9) { format(str,sizeof(str),"F%d %d",VehicleInfo[i][vehGroup],i+1); SetVehicleNumberPlate(VehicleInfo[i][vehCarID],str); } else if(VehicleInfo[i][vehGroup] < 10) { format(str,sizeof(str),"F0%d %d",VehicleInfo[i][vehGroup],i+1); SetVehicleNumberPlate(VehicleInfo[i][vehCarID],str); } } if(VehicleInfo[i][vehGroup] == 13) { if(VehicleInfo[i][vehModel] != 438) { new taxiobj = CreateObject(19308, 0.00000, 0.00000, 0.00000,0.00000, 0.00000, 0.00000); AttachObjectToVehicle(taxiobj, VehicleInfo[i][vehCarID], 0.000000, -0.249999, 0.949999, 0.000000, 0.000001, 90.449951); } } if(VehicleInfo[i][vehGroup] == 8 || VehicleInfo[i][vehGroup] == 2 || VehicleInfo[i][vehGroup] == 1) { if(VehicleInfo[i][vehModel] == 411) { object = CreateObject(19419, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0); AttachObjectToVehicle(object, VehicleInfo[i][vehCarID], 0.010000, -0.060000, 0.689999, 0.000000, 0.000000, 0.000000); new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805); SetObjectMaterialText(policecar, "POLICE", 0, OBJECT_MATERIAL_SIZE_256x128, "Arial", 40, 1, -16777216, 0, 1); AttachObjectToVehicle(policecar, VehicleInfo[i][vehCarID], 0.000000, -1.984998, 0.229999, -85.424964, 0.000000, 0.000000); } } } printf("%d server vehicles loaded.", Vehicless); return 1; } case DIALOG_SAVEVEHICLE: { if(response) { if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to be in a vehicle to save it."); new Float:vPos[4],strquery[160],i; GetVehiclePos(vehicleid, vPos[0], vPos[1], vPos[2]); GetVehicleZAngle(vehicleid, vPos[3]); print("1 - savevehicle"); format(strquery, sizeof(strquery), "INSERT INTO `vehicles` (`Model`, `PosX`, `PosY`, `PosZ`, `Rotation`) VALUES ('%d', '%f', '%f', '%f', '%f')", GetVehicleModel(vehicleid), vPos[0], vPos[1], vPos[2], vPos[3]); new Cache: ab = mysql_query(SQL, strquery); i = cache_insert_id(); cache_delete(ab); VehicleInfo[i][vehModel] = GetVehicleModel(GetPlayerVehicleID(playerid)); VehicleInfo[i][vehPosX] = vPos[0]; VehicleInfo[i][vehPosY] = vPos[1]; VehicleInfo[i][vehPosZ] = vPos[2]; VehicleInfo[i][vehRotation] = vPos[3]; VehicleInfo[i][vehGroup] = 0; VehicleInfo[i][vehRank] = 0; VehicleInfo[i][vehCarID] = GetPlayerVehicleID(playerid); for(new x = 0; x < MAX_VEHICLES; x++) { if(Carspawn[x] == GetPlayerVehicleID(playerid)) { Carspawn[x] = 0; } } VehicleInfo[i][vehCarID] = GetPlayerVehicleID(playerid); Vehicless++; format(strquery, sizeof(strquery), "The vehicle %d was successfully inserted in database. (db: %d)", VehicleInfo[i][vehCarID], VehicleInfo[i][vehCarIDD]); SCM(playerid, COLOR_GREY, strquery); print("2 - savevehicle"); } } // ALL VEHICLES enum vehInfo { vehModel, vehColor1, vehColor2, vehGroup, vehRank, vehCarID, vehCarIDD, Float:vehPosX, Float:vehPosY, Float:vehPosZ, Float:vehRotation }; new VehicleInfo[1000][vehInfo]; Cand folosesc o comanda (Ex: /vcolor, /vgroup, /vrank etc.) nu se actualizeaza in baza de date. De la ce poate fi problema?
  3. Jizzy.

    Problema paintball / war

    Am rezolvat, multumesc.
  4. Jizzy.

    Problema paintball / war

    Salut. Am si eu o problema cu sistemul de war / paint sa zic asa. Cand intru la paint si omor pe cineva cu M4, prima data se pune kill-ul, apoi daca mai omor inca o data pe altcineva de la paint nu mi se mai pune kill-ul. Daca incerc sa omor pe cineva cu un deagle, merge perfect. Chestia asta se intampla si la war. Daca aveti vreo idee de ce ar putea sa se intample asa ceva..
  5. Jizzy.

    Problema server

    Salut. Am si eu o problema cu server-ul meu de samp. Cand ma conectez si joc ceva timp, nu stiu de ce mai apare inca o conexiune din partea mea in error_log si apoi primesc kick de la server cu :innaceptable nickname. Daca aveti vreo idee ... [10:31:47] [connection] ip:x requests connection cookie. [10:31:48] [connection] incoming connection: ip:x id: 0 [10:31:48] [join] GnT has joined the server (0:ip) [10:38:34] [connection] ip:x requests connection cookie. [10:38:35] [connection] incoming connection: ip:x id: 1 [10:38:44] Quitbot: GnT.[STAFF] left the game (crash). [10:38:44] Quitbot: GnT.[STAFF] left the game (crash). [10:38:44] [part] GnT.[STAFF] has left the server (0:0)
  6. Jizzy.

    Problema functie

    Da, am aceasta functie in 3 timere, unul verfica fuel-ul la masina, al doilea speedometer-ul iar al treilea kilometrajul. De la aceste timere server-ul se poate restarta?
  7. Jizzy.

    Problema functie

    Salut, am si eu o problema cu o functie din gamemode. Am adaugat prinft la aceasta functie ca sa vad si eu daca totul este ok si am observat ca are o problema pe care nu stiu cum sa o rezolv si am decis sa fac un topic aici. Aceasta este functia: function IsAnOwnableCar(vehicleid) { foreach(Player, i) { for(new v; v < MAX_PERSONAL_VEHICLES; v++) { if(PlayerInfo[i][pCarID][v] == vehicleid) { return 1; } printf("%d playerid, %d carid IsAnOwnableCar", i, v); } } return 0; } Am verificat si error_log si este plin de spam [19:41:09] 0 playerid, 6 carid IsAnOwnableCar [19:41:09] 0 playerid, 7 carid IsAnOwnableCar [19:41:09] 0 playerid, 8 carid IsAnOwnableCar [19:41:09] 0 playerid, 9 carid IsAnOwnableCar [19:41:09] 1 playerid, 0 carid IsAnOwnableCar [19:41:09] 1 playerid, 1 carid IsAnOwnableCar [19:41:09] 1 playerid, 2 carid IsAnOwnableCar [19:41:09] 1 playerid, 3 carid IsAnOwnableCar [19:41:09] 1 playerid, 4 carid IsAnOwnableCar [19:41:09] 1 playerid, 5 carid IsAnOwnableCar [19:41:09] 1 playerid, 6 carid IsAnOwnableCar [19:41:09] 1 playerid, 7 carid IsAnOwnableCar [19:41:09] 1 playerid, 8 carid IsAnOwnableCar [19:41:09] 1 playerid, 9 carid IsAnOwnableCar [19:41:10] 0 playerid, 0 carid IsAnOwnableCar [19:41:10] 0 playerid, 1 carid IsAnOwnableCar [19:41:10] 0 playerid, 2 carid IsAnOwnableCar [19:41:10] 0 playerid, 3 carid IsAnOwnableCar [19:41:10] 0 playerid, 4 carid IsAnOwnableCar [19:41:10] 0 playerid, 5 carid IsAnOwnableCar [19:41:10] 0 playerid, 6 carid IsAnOwnableCar [19:41:10] 0 playerid, 7 carid IsAnOwnableCar [19:41:10] 0 playerid, 8 carid IsAnOwnableCar [19:41:10] 0 playerid, 9 carid IsAnOwnableCar [19:41:10] 1 playerid, 0 carid IsAnOwnableCar [19:41:10] 1 playerid, 1 carid IsAnOwnableCar [19:41:10] 1 playerid, 2 carid IsAnOwnableCar [19:41:10] 1 playerid, 3 carid IsAnOwnableCar [19:41:10] 1 playerid, 4 carid IsAnOwnableCar [19:41:10] 1 playerid, 5 carid IsAnOwnableCar [19:41:10] 1 playerid, 6 carid IsAnOwnableCar [19:41:10] 1 playerid, 7 carid IsAnOwnableCar [19:41:10] 1 playerid, 8 carid IsAnOwnableCar [19:41:10] 1 playerid, 9 carid IsAnOwnableCar [19:41:11] 0 playerid, 0 carid IsAnOwnableCar [19:41:11] 0 playerid, 1 carid IsAnOwnableCar [19:41:11] 0 playerid, 2 carid IsAnOwnableCar [19:41:11] 0 playerid, 3 carid IsAnOwnableCar [19:41:11] 0 playerid, 4 carid IsAnOwnableCar [19:41:11] 0 playerid, 5 carid IsAnOwnableCar [19:41:11] 0 playerid, 6 carid IsAnOwnableCar [19:41:11] 0 playerid, 7 carid IsAnOwnableCar [19:41:11] 0 playerid, 8 carid IsAnOwnableCar [19:41:11] 0 playerid, 9 carid IsAnOwnableCar [19:41:11] 1 playerid, 0 carid IsAnOwnableCar [19:41:11] 1 playerid, 1 carid IsAnOwnableCar [19:41:11] 1 playerid, 2 carid IsAnOwnableCar [19:41:11] 1 playerid, 3 carid IsAnOwnableCar [19:41:11] 1 playerid, 4 carid IsAnOwnableCar [19:41:11] 1 playerid, 5 carid IsAnOwnableCar [19:41:11] 1 playerid, 6 carid IsAnOwnableCar [19:41:11] 1 playerid, 7 carid IsAnOwnableCar [19:41:11] 1 playerid, 8 carid IsAnOwnableCar [19:41:11] 1 playerid, 9 carid IsAnOwnableCar [19:41:12] 0 playerid, 0 carid IsAnOwnableCar [19:41:12] 0 playerid, 1 carid IsAnOwnableCar [19:41:12] 0 playerid, 2 carid IsAnOwnableCar [19:41:12] 0 playerid, 3 carid IsAnOwnableCar [19:41:12] 0 playerid, 4 carid IsAnOwnableCar [19:41:12] 0 playerid, 5 carid IsAnOwnableCar [19:41:12] 0 playerid, 6 carid IsAnOwnableCar [19:41:12] 0 playerid, 7 carid IsAnOwnableCar [19:41:12] 0 playerid, 8 carid IsAnOwnableCar [19:41:12] 0 playerid, 9 carid IsAnOwnableCar [19:41:12] 1 playerid, 0 carid IsAnOwnableCar [19:41:12] 1 playerid, 1 carid IsAnOwnableCar [19:41:12] 1 playerid, 2 carid IsAnOwnableCar [19:41:12] 1 playerid, 3 carid IsAnOwnableCar [19:41:12] 1 playerid, 4 carid IsAnOwnableCar [19:41:12] 1 playerid, 5 carid IsAnOwnableCar [19:41:12] 1 playerid, 6 carid IsAnOwnableCar [19:41:12] 1 playerid, 7 carid IsAnOwnableCar [19:41:12] 1 playerid, 8 carid IsAnOwnableCar [19:41:12] 1 playerid, 9 carid IsAnOwnableCar [19:41:14] 0 playerid, 0 carid IsAnOwnableCar [19:41:14] 0 playerid, 1 carid IsAnOwnableCar [19:41:14] 0 playerid, 2 carid IsAnOwnableCar [19:41:14] 0 playerid, 3 carid IsAnOwnableCar [19:41:14] 0 playerid, 4 carid IsAnOwnableCar [19:41:14] 0 playerid, 5 carid IsAnOwnableCar [19:41:14] 0 playerid, 6 carid IsAnOwnableCar [19:41:14] 0 playerid, 7 carid IsAnOwnableCar [19:41:14] 0 playerid, 8 carid IsAnOwnableCar [19:41:14] 0 playerid, 9 carid IsAnOwnableCar [19:41:14] 1 playerid, 0 carid IsAnOwnableCar [19:41:14] 1 playerid, 1 carid IsAnOwnableCar [19:41:14] 1 playerid, 2 carid IsAnOwnableCar [19:41:14] 1 playerid, 3 carid IsAnOwnableCar [19:41:14] 1 playerid, 4 carid IsAnOwnableCar [19:41:14] 1 playerid, 5 carid IsAnOwnableCar [19:41:14] 1 playerid, 6 carid IsAnOwnableCar [19:41:14] 1 playerid, 7 carid IsAnOwnableCar [19:41:14] 1 playerid, 8 carid IsAnOwnableCar [19:41:14] 1 playerid, 9 carid IsAnOwnableCar [19:41:15] 0 playerid, 0 carid IsAnOwnableCar [19:41:15] 0 playerid, 1 carid IsAnOwnableCar [19:41:15] 0 playerid, 2 carid IsAnOwnableCar [19:41:15] 0 playerid, 3 carid IsAnOwnableCar [19:41:15] 0 playerid, 4 carid IsAnOwnableCar [19:41:15] 0 playerid, 5 carid IsAnOwnableCar [19:41:15] 0 playerid, 6 carid IsAnOwnableCar [19:41:15] 0 playerid, 7 carid IsAnOwnableCar [19:41:15] 0 playerid, 8 carid IsAnOwnableCar [19:41:15] 0 playerid, 9 carid IsAnOwnableCar [19:41:15] 1 playerid, 0 carid IsAnOwnableCar [19:41:15] 1 playerid, 1 carid IsAnOwnableCar [19:41:15] 1 playerid, 2 carid IsAnOwnableCar [19:41:15] 1 playerid, 3 carid IsAnOwnableCar [19:41:15] 1 playerid, 4 carid IsAnOwnableCar [19:41:15] 1 playerid, 5 carid IsAnOwnableCar [19:41:15] 1 playerid, 6 carid IsAnOwnableCar [19:41:15] 1 playerid, 7 carid IsAnOwnableCar [19:41:15] 1 playerid, 8 carid IsAnOwnableCar [19:41:15] 1 playerid, 9 carid IsAnOwnableCar [19:41:15] 0 playerid, 0 carid IsAnOwnableCar [19:41:15] 0 playerid, 1 carid IsAnOwnableCar [19:41:15] 0 playerid, 2 carid IsAnOwnableCar [19:41:15] 0 playerid, 3 carid IsAnOwnableCar [19:41:15] 0 playerid, 4 carid IsAnOwnableCar [19:41:15] 0 playerid, 5 carid IsAnOwnableCar [19:41:15] 0 playerid, 6 carid IsAnOwnableCar [19:41:15] 0 playerid, 7 carid IsAnOwnableCar [19:41:15] 0 playerid, 8 carid IsAnOwnableCar [19:41:15] 0 playerid, 9 carid IsAnOwnableCar [19:41:15] 1 playerid, 0 carid IsAnOwnableCar [19:41:15] 1 playerid, 1 carid IsAnOwnableCar [19:41:15] 1 playerid, 2 carid IsAnOwnableCar [19:41:15] 1 playerid, 3 carid IsAnOwnableCar [19:41:15] 1 playerid, 4 carid IsAnOwnableCar [19:41:15] 1 playerid, 5 carid IsAnOwnableCar [19:41:15] 1 playerid, 6 carid IsAnOwnableCar [19:41:15] 1 playerid, 7 carid IsAnOwnableCar [19:41:15] 1 playerid, 8 carid IsAnOwnableCar [19:41:15] 1 playerid, 9 carid IsAnOwnableCar [19:41:16] 0 playerid, 0 carid IsAnOwnableCar [19:41:16] 0 playerid, 1 carid IsAnOwnableCar [19:41:16] 0 playerid, 2 carid IsAnOwnableCar [19:41:16] 0 playerid, 3 carid IsAnOwnableCar [19:41:16] 0 playerid, 4 carid IsAnOwnableCar [19:41:16] 0 playerid, 5 carid IsAnOwnableCar [19:41:16] 0 playerid, 6 carid IsAnOwnableCar [19:41:16] 0 playerid, 7 carid IsAnOwnableCar [19:41:16] 0 playerid, 8 carid IsAnOwnableCar [19:41:16] 0 playerid, 9 carid IsAnOwnableCar [19:41:16] 1 playerid, 0 carid IsAnOwnableCar [19:41:16] 1 playerid, 1 carid IsAnOwnableCar [19:41:16] 1 playerid, 2 carid IsAnOwnableCar [19:41:16] 1 playerid, 3 carid IsAnOwnableCar [19:41:16] 1 playerid, 4 carid IsAnOwnableCar [19:41:16] 1 playerid, 5 carid IsAnOwnableCar [19:41:16] 1 playerid, 6 carid IsAnOwnableCar [19:41:16] 1 playerid, 7 carid IsAnOwnableCar [19:41:16] 1 playerid, 8 carid IsAnOwnableCar [19:41:16] 1 playerid, 9 carid IsAnOwnableCar Nu stiu de la ce este problema dar cred ca din cauza acestei functii server-ul meu se restarteaza / da crash. Daca m-ati putea ajuta sau daca aveti vreo idee este bine-venita. Multumesc.
  8. Jizzy.

    Server Crash

    Salut, cred ca poate fi problema de la plugins.
  9. Jizzy.

    Problema server

    Rezolvat.
  10. Jizzy.

    Problema server

    Are cineva vreo idee cum as putea rezolva va rog? Am schimbat versiunile de mysql si tot degeaba...
  11. Jizzy.

    Problema server

    Salut, am verificat astazi mysql_log si am vazut ca primesc niste erori. Am intrat pe server si am redeschis mysql_log si am observat ca de fiecare data cand un jucator se conecteaza pe server apare eroarea cu rosu (o sa dau poza). Daca aveti idee cum as putea rezolva... Multumesc.
  12. Jizzy.

    Problema restart server

    Buna seara. Cer T/C am rezolvat problema, trebuia sa mai optimizez gamemode-ul.
  13. Jizzy.

    Problema restart server

    @razvanduciuc lucrez pe acest gamemode din august anul trecut, am trecut toate dialog-urile pe switch(dialogid) si totodata pe switch(listitem), am modificat fiecare comanda ca sa fie cat mai ok, toate chestiile inutile au fost scoase de catre mine, mapping nu prea este pe server. Pe scurt am luat tot gamemode-ul cap-coada si cam toate lucrurile sunt bine puse la punct, am vorbit si cu cei de la care am gazduit server-ul si mi-au spus ca nu este problema de la ei. Erori in mysql_log nu am dar cred ca am sa verific cam toate lucrurile ce tin de baza de date, poate asa nu se va mai restarta server-ul cand intra cineva pe el... Oricum, multumesc frumos.
  14. Jizzy.

    Problema restart server

    Am mai stat sa verific de la ce este problema dar tot nu am idee cum sa o rezolv. Dupa ce serverul dadea toti jucatorii afara, am intrat in server log si la fiecare jucator in parte scria "x has left the game (crash)" iar apoi [connection] incoming connection ip-ul jucatorului si id:-ul. Probabil sa fie problema cand un jucator se conecteaza pe server, ii da pe ceilalti afara. Aveti idei va rog?
  15. Jizzy.

    Problema restart server

    @Uzzi25.. folosesc gamemode-ul wster rpg. @razvanduciuc multumesc pentru informatie, o sa incerc sa optimizez gamemode-ul. Serverul nu este floodat de nimeni tin sa mentionez.
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.