Jump to content

FDH_

Membru
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Sex
    Masculin
  • In-game Name
    FDH_
  • Level of knowledge
    Mediu

Recent Profile Visitors

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

FDH_'s Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Prima data am facut absolut totul legat de mesaj in "if", si m-am enervat ca nu merge, dar am realizat ca daca fac string-ul in afara if-ului si dau doar SendClientMessage atunci merge. Acum merge si daca apas pe 2. Ms Banditule, mereu esti aici cand am nevoie de tine =]]
  2. CMD:engine(playerid, params[]) { if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SCM(playerid, -1, "Eroare: Nu conduci o masina!"); new vID = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vID, engine, lights, alarm, doors, bonnet, boot, objective); if(engine == 1) { engine = 0; } else { engine = 1; } SetVehicleParamsEx(vID, engine, lights, alarm, doors, bonnet, boot, objective); return 1; } Am facut comanda din nou, si merge perfect, dar daca adaug orice la partile unde schimba engine-ul in 0, respectiv 1, nu mai merge. Cum as putea sa adaug text atunci cand pornesc motorul sa le apara la cei din jur ca l-am pornit.
  3. Salut. Am incercat si sa pun ca atunci cand intra in masina sa se porneasca motorul, dar masina incepe sa zboare(intr-un fel) ca si cum ar avea noclip orice fac dupa aceea.
  4. Salut. Am incercat sa fac asta dar acum orice apas imi scrie "FDH_ a pornit motorul." si motorul nu se porneste.
  5. Salut. Am postat destul de mult, dar problemele nu se termina. Cu noroc, am avut multe probleme la GM pe care le-am fixat, dar pe asta nu stiu. Am facut un OnPlayerKeyStateChange ca atunci cand apas pe tasta 2, sa se porneasca/opreasca motorul. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(newkeys == KEY_LOOK_BEHIND) { new vID = GetPlayerVehicleID(playerid), tmp_engine, tmp_lights, tmp_alarm, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective; GetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarm, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective); if(tmp_engine == 0) { tmp_engine = 1; new Float:x, Float:y, Float:z; new text[128]; GetPlayerPos(playerid, x, y, z); format(text, sizeof(text), "%s a pornit motorul.", GetName(playerid)); if(IsPlayerInRangeOfPoint(playerid, 15, x, y, z)) SendClientMessage(playerid, 0x4E87F2FF, text); } else { tmp_engine = 0; new Float:a, Float:b, Float:c; new string[128]; GetPlayerPos(playerid, a, b, c); format(string, sizeof(string), "%s a oprit motorul.", GetName(playerid)); if(IsPlayerInRangeOfPoint(playerid, 15, a, b, c)) SendClientMessage(playerid, 0x4E87F2FF, string); } SetVehicleParamsEx(vID, tmp_engine, tmp_lights, tmp_alarm, tmp_doors, tmp_bonnet, tmp_boot, tmp_objective); } } return 1; } Sunt incepator, asa am reusit sa fac. In joc, cand intru intr-o masina si apas pe 2, se opreste motorul si trebuie sa apas din nou pe 2 ca sa il pornesc. Masina are motorul oprit din start, nu se aude zgomot de la motor si nu merge, de ce imi opreste motorul atunci?
  6. Am pornit sv-ul dar nu imi apare dialogul de inregistrare. Presimt ca iarasi am facut ceva eroare de incepator
  7. Da, le-am introdus dar tot nu merge. EDIT: Am incurcat locul de la parola de la mysql cu cea pentru baza de date. Am rezolvat, Ms.
  8. Am facut totul cum ai aratat, dar tot mi-a dat "Could not connect to database!". Ma poti ajuta?
  9. Nu am fost atent =]]]] Am definit g_handle, dar am uitat sa definesc si handle, ms mult. Alta data voi fi mai atent
  10. Am facut un sistem de inregistrare basic pentru un gm, doar parola, fara email, fara varsta etc. Am facut totul, dar cand compilez imi da eroarea asta: error 017: undefined symbol "handle" Imi da eroarea asta de 5 ori, am folosit "handle" de 5 ori in cod. Asta e unul dintre coduri: mysql_format(handle, query, sizeof(query), "SELECT * FROM `users` WHERE `Nume`='%e' AND `Parola` = '%e'", GetName(playerid),Hashhh); Ma poate ajuta cineva? Mss
  11. Salut! Am o problema. Am facut totul de aici, dar cand incerc sa compilez, imi da (error 017: undefined symbol "handle"). Peste tot unde am folosit "handle" imi da eroarea asta, nu doar la linia asta specifica. Oare poti sa ma ajuti cumva? MS
  12. Asta este gm-ul pe care l-am instalat, si am vrut sa il incerc. Am schimbat parola de rcon din server.cfg, dar cand incerc sa pun /rcon login ... sau din baza de date sa ma setez ca admin, iau kick. Nu inteleg de ce, am mai auzit ca este securitate daca spargi baza de date, dar cum ma setez admin atunci fara sa iau kick?
  13. Am instalat noul plugin de mysql, dar tot apar aceste erori, si mysql se incarca de data asta. ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team filterscripts = "" (string) Server Plugins -------------- Loading plugin: mysql >> plugin.mysql: R41-4 successfully loaded. Loaded. Loading plugin: streamer *** Streamer Plugin v2.9.3 by Incognito loaded *** Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.2 (c) 2012 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: nativechecker Loaded. Loaded 4 plugins. Started server on port: 7777, with maxplayers: 50 lanmode is OFF. Filterscripts --------------- Loaded 0 filterscripts. Error: Function not registered: 'cache_get_data' Error: Function not registered: 'cache_get_field_content' Error: Function not registered: 'cache_get_field_content_int' Script[gamemodes/new.amx]: Run time error 19: "File or function is not found" Number of vehicle models: 0
  14. Salutare! Tocmai am inceput sa lucrez pe un GM pe samp, si am decis sa incep prima data cu un sistem de login MySQL cu baza de date. Am facut tot ce trebuie, nu imi da nici o eroare la compilare, insa cand pornesc serverul imi da eroarea asta in consola: ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team Server Plugins -------------- Loading plugin: streamer *** Streamer Plugin v2.9.3 by Incognito loaded *** Loaded. Loading plugin: sscanf =============================== sscanf plugin loaded. Version: 2.8.2 (c) 2012 Alex "Y_Less" Cole =============================== Loaded. Loading plugin: mysql Failed. Loading plugin: nativechecker Loaded. Loaded 3 plugins. Started server on port: 7777, with maxplayers: 50 lanmode is OFF. Filterscripts --------------- Loading filterscript 'gl_actions.amx'... Loading filterscript 'gl_realtime.amx'... Loading filterscript 'gl_property.amx'... ----------------------------------- Grand Larceny Property Filterscript ----------------------------------- Loading filterscript 'gl_mapicon.amx'... Loading filterscript 'ls_elevator.amx'... Loading filterscript 'attachments.amx'... Loading filterscript 'skinchanger.amx'... --Admin Player Skin Changer Loaded Loading filterscript 'vspawner.amx'... --Admin Vehicle Spawner Loaded Loading filterscript 'ls_mall.amx'... Loading filterscript 'ls_beachside.amx'... |--------------------------------------------------- |--- LS BeachSide Filterscript |-- Script v1.03 |-- 19th April 2015 |--------------------------------------------------- |-- LS BeachSide Building Elevator created |--------------------------------------------------- Loaded 10 filterscripts. Error: Function not registered: 'mysql_connect' Error: Function not registered: 'mysql_errno' Error: Function not registered: 'mysql_close' Error: Function not registered: 'mysql_format' Error: Function not registered: 'mysql_tquery' Error: Function not registered: 'cache_get_data' Error: Function not registered: 'cache_get_field_content' Error: Function not registered: 'cache_get_field_content_int' Reading File: blank Reading File: properties/houses.txt Reading File: properties/businesses.txt Reading File: properties/banks.txt Reading File: properties/police.txt Script[gamemodes/new.amx]: Run time error 19: "File or function is not found" Number of vehicle models: 0 Dupa plugin-ul cu BeachSide Elevator, puteti observa ca sunt acele functii neinregistrare, si nu reusesc sa le fixez. Ma poate ajuta cineva, as vrea sa continui gamemode-ul, dar nu vreau sa sterg sistemul sau sa incep de la inceput. Aici este si server.cfg: echo Executing Server Config... lanmode 0 rcon_password bzoneisbest maxplayers 50 port 7777 hostname SA-MP 0.3 Server gamemode0 new 1 filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_elevator attachments skinchanger vspawner ls_mall ls_beachside announce 0 chatlogging 0 weburl www.sa-mp.com onfoot_rate 40 incar_rate 40 weapon_rate 40 stream_distance 300.0 stream_rate 1000 maxnpc 0 logtimeformat [%H:%M:%S] language English plugins streamer sscanf mysql nativechecker
×
×
  • Create New...

Important Information

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.