Jump to content

Matt

VIP
  • Posts

    555
  • Joined

  • Last visited

  • Days Won

    13

Everything posted by Matt

  1. Ia ca m-ai facut curios, arata-mi niste sisteme facute de tine.
  2. Pentru a modifica zona clickable trebuie sa umbli la coordonatele de la PlayerTextDrawTextSize. EDIT: Trebuie sa le cauti pana cand le nimeresti, cam asa fac eu O_O
  3. Scripter bun si cu vechime pe aici nu gasesti fara sa-l platesti, dar spor la cautat totusi!
  4. Presupun ca ai o variabila pTutorial care tine cont daca jucatorul s-a inregistrat. Dupa ce ai terminat de inregistrat nu ai updatat in baza coloana "Tutorial" (sau cum o ai tu).
  5. N-are treaba " ` " cu niciun fel de eroare............. ON: Alea nu sunt erori, sunt debug uri ca sa vezi cum ruleaza query-urile, cum a zis si red mai sus.
  6. Arata-ne si noua erorile pe care le primesti..
  7. Ti-am aratat si mai sus, eu mai mult de atat nu am cum sa te ajut, iti recomand sa te uiti peste tutoriale mysql in samp si apoi sa te pui sa repari.
  8. Frumos dar... are dreptate @Leonard ????
  9. ............ Inainte sa iei valori din rezultatele query-ului ar trebui sa verifici DACA sunt randuri extrase. Adaugi if(cache_get_row_count() > 0) ca sa verifici daca sunt.
  10. Verifica in sistemul tau pe unde mai ai SELECT-uri fara sa verifici numarul de randuri rezultate si fa cum am facut eu mai sus.
  11. Presupunand ca ai deja o tabela in care stochezi vehiculele, creezi o comanda prin care daca admin-ul respectiv este intr-un vehicul, iar acel vehicul nu este salvat deja in baza, inserezi in tabela (INSERT INTO `vehicles` ....) si il bagi in enum-ul cu vehiculele tale. (VehicleInfo[cache_insert_id()].....)
  12. Daca nu stii ce ai facut pune un backup mai vechi sau reia editul.
  13. Din pastebin-ul de la tine e problema, incearca: function LoadCar(id) { if(CarInfo[id][cModel] != 0) return 1; new query[256]; mysql_format(SQL, query, 128, "SELECT * FROM `cars` WHERE `ID`='%d'", id); new Cache: db = mysql_query(SQL, query); if(cache_get_row_count() > 0) { new i = 0; CarInfo[id][cID] = id; CarInfo[id][cModel] = cache_get_field_content_int(i, "Model"); CarInfo[id][cLocationx] = cache_get_field_content_float(i, "Locationx"); CarInfo[id][cLocationy] = cache_get_field_content_float(i, "Locationy"); CarInfo[id][cLocationz] = cache_get_field_content_float(i, "Locationz"); CarInfo[id][cAngle] = cache_get_field_content_float(i, "Angle"); CarInfo[id][cColorOne] = cache_get_field_content_int(i, "ColorOne"); CarInfo[id][cColorTwo] = cache_get_field_content_int(i, "ColorTwo"); cache_get_field_content(i, "Owner", CarInfo[id][cOwner], SQL, 129); CarInfo[id][cValue] = cache_get_field_content_int(i, "Value"); cache_get_field_content(i, "License", CarInfo[id][cLicense], SQL, 129); CarInfo[id][cAlarm] = cache_get_field_content_int(i, "Alarm"); CarInfo[id][cLock] = cache_get_field_content_int(i, "Lockk"); CarInfo[id][mod0] = cache_get_field_content_int(i, "mod0"); CarInfo[id][mod1] = cache_get_field_content_int(i, "mod1"); CarInfo[id][mod2] = cache_get_field_content_int(i, "mod2"); CarInfo[id][mod3] = cache_get_field_content_int(i, "mod3"); CarInfo[id][mod4] = cache_get_field_content_int(i, "mod4"); CarInfo[id][mod5] = cache_get_field_content_int(i, "mod5"); CarInfo[id][mod6] = cache_get_field_content_int(i, "mod6"); CarInfo[id][mod7] = cache_get_field_content_int(i, "mod7"); CarInfo[id][mod8] = cache_get_field_content_int(i, "mod8"); CarInfo[id][mod9] = cache_get_field_content_int(i, "mod9"); CarInfo[id][mod10] = cache_get_field_content_int(i, "mod10"); CarInfo[id][mod11] = cache_get_field_content_int(i, "mod11"); CarInfo[id][mod12] = cache_get_field_content_int(i, "mod12"); CarInfo[id][mod13] = cache_get_field_content_int(i, "mod13"); CarInfo[id][paintjob] = cache_get_field_content_int(i, "paintjob"); CarInfo[id][KM] = cache_get_field_content_float(i, "KM"); CarInfo[id][Userid] = cache_get_field_content_int(i, "Userid"); CarInfo[id][Confiscated] = cache_get_field_content_int(i, "Confiscated"); CarInfo[id][Spawned] = 0; CarInfo[id][cSpecial] = cache_get_field_content_int(i, "Special"); CarInfo[id][cTax] = cache_get_field_content_int(i, "Tax"); CarInfo[id][cPoints] = cache_get_field_content_int(i, "Points"); CarInfo[id][cFuel] = cache_get_field_content_int(i, "Fuel"); cache_delete(db); } return 1; }
  14. if(sscanf(params, "s[128]s[128]s[128]s[128]",id,script,color)) Ai specificat 4 string-uri ca parametrii si ai pus 3 variabile dintre care una nici nu e string.
×
×
  • Create New...