RespecT
Membru-
Posts
34 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Everything posted by RespecT
-
Pai da mi-l updateaza cand cumpar clan si merge daca ies din joc ramane clan tag tot, dar problema e ca cand dau restart la server se sterg..
-
Da e pe mysql, dar ce legatura are cu tutorialul?
-
Problema intalnita (descriere):Nu inteleg cum sa adaug tutorialul de la big-zone la gm-u virtualEro(area / rile) / warning-(ul / urile):-Liniile de cod / sursa / script-ul(obligatoriu): if(TutTime[i] >= 1) { TutTime[i] += 1; if(TutTime[i] == 3) { PlayerTextDrawShow(i, Step[i][1]); PlayerTextDrawShow(i, Tutorial[i]); mysql_query(SQL, "SELECT * FROM users"); mysql_store_result(); new registered = mysql_num_rows(); mysql_free_result(); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SetPlayerVirtualWorld(i, 0); if(PlayerInfo[i][pLanguage] == 2) { new name[MAX_PLAYER_NAME]; GetPlayerName(i, name, sizeof name); SetPlayerPosEx(i, 366.0407,-1892.6018,1.6999); SetPlayerCameraPos(i, 596.3768,-1986.2084,85.2497); SetPlayerCameraLookAt(i, 419.0543,-1888.1879,23.8108); TogglePlayerControllable(i,0); format(string, sizeof(string), "Salutare, %s! Bun venit pe BG-ZONE!", name); SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "Serverul BG-ZONE a fost deschis pe 8 Septembrie 2016."); format(string, sizeof(string), "Avem %d playeri inregistrati, iar acum sunt %d playeri online.",registered,GetOnLinePlayers()); SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "Sunt 150 case si 53 business-uri pe server, iar in dealership sunt disponibile 101 modele diferite de masini."); SendClientMessage(i, COLOR_WHITE, "Daca joci pe BG-ZONE, ai siguranta ca nu vor fi resetate niciodata datele(wipe) niciodata asa cum se intampla pe alte servere."); SendClientMessage(i, COLOR_WHITE, "Se fac updateuri frecvente la server, iar bugurile aparute sunt reparate rapid."); SendClientMessage(i, COLOR_WHITE, "Adminii si helperii sunt bine alesi si te pot ajuta cu orice problema."); SendClientMessage(i, COLOR_WHITE, "Intrebarile despre server le poti pune pe /n, iar daca ai o problema poti folosi /report."); SendClientMessage(i, COLOR_WHITE, "In continuare iti vom prezenta cateva informatii despre joc."); } else { new name[MAX_PLAYER_NAME]; GetPlayerName(i, name, sizeof name); format(string, sizeof(string), "Hi, %s! Welcome to BG-ZONE.TK!", name); SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "Our server, BG-ZONE.TK, has opened on September 8th, 2016."); format(string, sizeof(string), "We have %d players registered and now there are %d players online.",registered,GetOnLinePlayers()); SendClientMessage(i, COLOR_WHITE, string); SendClientMessage(i, COLOR_WHITE, "There are 150 houses and 53 businesses on our server and there are 101 different car models that you can buy from our dealership."); SendClientMessage(i, COLOR_WHITE, "If you play on BG-ZONE, you'll never have to worry about server wipes."); SendClientMessage(i, COLOR_WHITE, "Our server is frequently updated and the bugs are fixed quickly."); SendClientMessage(i, COLOR_WHITE, "The admins and helpers can help you with any problem you may have."); SendClientMessage(i, COLOR_WHITE, "If you have any questions, use /n. If you have any problems, use /report."); } } else if(TutTime[i] == 15) { PlayerTextDrawHide(i, Step[i][1]); PlayerTextDrawShow(i, Step[i][2]); SetPlayerPosEx(i, 1857.4175,-1847.2292,13.5815); SetPlayerCameraPos(i, 1788.9900,-1821.4302,38.3741); SetPlayerCameraLookAt(i, 1830.4750,-1840.9551,15.9818); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Acesta este un magazin 24/7, magazin de unde poti cumpara mai multe lucruri utile:"); SendClientMessage(i, COLOR_WHITE, "- telefon - dupa ce cumperi un telefon, vei putea suna un player sau ii poti da sms."); SendClientMessage(i, COLOR_WHITE, "- agenda telefonica - vei putea afla numerele de telefon ale altor playeri folosind comanda /number."); SendClientMessage(i, COLOR_WHITE, "- credit pentru telefon - pe serverul nostru telefoanele folosesc credit pentru apeluri si sms-uri."); SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - walkie-talkie poate fi folosit pentru a discuta cu un grup de prieteni."); SendClientMessage(i, COLOR_WHITE, "Te lasam pe tine sa descoperi ce altceva poti cumpara din magazine."); } else { SendClientMessage(i, COLOR_WHITE, "This is a 24/7 store. You can buy the following products from here:"); SendClientMessage(i, COLOR_WHITE, "- phone - you can use the phone to make calls(/call) and send texts(/sms)."); SendClientMessage(i, COLOR_WHITE, "- phonebook - you'll be able to find the phone number another player using /number."); SendClientMessage(i, COLOR_WHITE, "- prepay credit - on this server the phones use prepay credit. when it runs out, buy some more."); SendClientMessage(i, COLOR_WHITE, "- walkie-talkie - this can be used to talk with a group of friends."); SendClientMessage(i, COLOR_WHITE, "We'll let you discover what else can be bought from the stores."); } } else if(TutTime[i] == 27) { PlayerTextDrawHide(i, Step[i][2]); PlayerTextDrawShow(i, Step[i][3]); SetPlayerPosEx(i, 1223.5475,-1881.3280,30.6971); SetPlayerCameraPos(i, 1174.6624,-1857.9758,46.3864); SetPlayerCameraLookAt(i, 1220.9999,-1838.0793,29.3740); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Aici poti da examen pentru a obtine permisul de conducere."); SendClientMessage(i, COLOR_WHITE, "Nu stii cum sa ajungi aici? Nicio problema. Poti folosi comanda /gps si vei putea alege 'Los Santos DMV' din lista."); SendClientMessage(i, COLOR_WHITE, "Comanda /gps poate fi folosita si pentru a afla unde sunt alte locatii importante de pe server."); SendClientMessage(i, COLOR_WHITE, "Dupa ce vei lua examenul vei primi permisul de conducere, vei putea conduce masini, dar nu avioane sau barci."); SendClientMessage(i, COLOR_WHITE, "Cand vei face level 3 vei putea cumpara si licenta pentru a putea conduce un avion, o barca sau pentru a cumpara arme."); SendClientMessage(i, COLOR_WHITE, "Licentele vor expira dupa 100 ore de joc si va trebui sa dai examenele din nou pentru a le obtine."); } else { SendClientMessage(i, COLOR_WHITE, "Here is the place where you can get your driver's licence."); SendClientMessage(i, COLOR_WHITE, "If you don't know to get here, you can use /gps and choose 'Los Santos DMV' from the list."); SendClientMessage(i, COLOR_WHITE, "You can also use /gps to find out where other important locations are.Or you could call a cab using /service taxi."); SendClientMessage(i, COLOR_WHITE, "Once you'll get your driver's license, you'll able to drive cars, but not planes or boats."); SendClientMessage(i, COLOR_WHITE, "To be able to drive planes and boats, you'll need to contact an instructor once you reach level 3."); SendClientMessage(i, COLOR_WHITE, "The licenses expires after 100 hours spent in game."); } } else if(TutTime[i] == 39) { PlayerTextDrawHide(i, Step[i][3]); PlayerTextDrawShow(i, Step[i][4]); SetPlayerPosEx(i, 414.1995,-1512.3070,31.5960); SetPlayerCameraPos(i, 423.4182,-1491.4530,69.4719); SetPlayerCameraLookAt(i, 338.5612,-1515.7255,45.6690); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Aici este Dealership-ul, adica locul de unde poti cumpara masini."); SendClientMessage(i, COLOR_WHITE, "Pentru a cumpara o masina personala ai nevoie de level 3 si de bani suficienti."); SendClientMessage(i, COLOR_WHITE, "Cea mai ieftina masina este Bike $250,000, iar cea mai scumpa este Infernus si are pretul de $45,000,000."); SendClientMessage(i, COLOR_WHITE, "Sunt disponibile 101 modele diferite de masini in dealership."); SendClientMessage(i, COLOR_WHITE, "Dupa ce vei cumpara o masina personala vei putea incuia usile, o vei putea parca unde vrei si o vei putea localiza."); SendClientMessage(i, COLOR_WHITE, "Vei putea deasemenea sa vinzi masina sau sa faci schimb de masini cu un alt player."); SendClientMessage(i, COLOR_WHITE, "Poti detine maxim 10 masini personale, iar toate masinile vor ramane spawnate."); SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 3 poti munci la unul in joburile disponibile."); } else { SendClientMessage(i, COLOR_WHITE, "That is the dealership, the place where players can buy personal vehicles."); SendClientMessage(i, COLOR_WHITE, "To buy your own vehicle you need level 3 and enough money."); SendClientMessage(i, COLOR_WHITE, "The cheapest car is Bike with price of $250,000 and the most expensive is Infernus and it costs $45,000,000."); SendClientMessage(i, COLOR_WHITE, "There are 101 different car models available in our vehicle dealership."); SendClientMessage(i, COLOR_WHITE, "Once you'll get your own car, you'll able to lock the doors of your car and you'll be able to park it wherever you want."); SendClientMessage(i, COLOR_WHITE, "You can have 10 personal vehicles and all for spawned."); SendClientMessage(i, COLOR_WHITE, "Untill you reach level 3, you can use one of the 10+ jobs available."); } } else if(TutTime[i] == 51) { PlayerTextDrawHide(i, Step[i][4]); PlayerTextDrawShow(i, Step[i][5]); SetPlayerPosEx(i, -35.6509,-1152.9932,1.1770); SetPlayerCameraPos(i, 2415.4104,-2087.5901,24.1772); SetPlayerCameraLookAt(i, 2458.2122,-2094.2029,13.5469); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Trucker (sofer de tir) este unul din cele 10 job-uri disponibile pe serverul nostru."); SendClientMessage(i, COLOR_WHITE, "La acest job trebuie sa livrezi marfa dintr-un oras in altul."); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, "Pentru a vedea o lista cu joburile de pe server, foloseste comanda /jobs."); SendClientMessage(i, COLOR_WHITE, "La toate joburile se castiga la fel de multi bani, cu exceptia jobului de detectiv unde nu se castiga bani."); SendClientMessage(i, COLOR_WHITE, "Poti testa toate joburile pentru a testa care iti place mai mult."); SendClientMessage(i, COLOR_WHITE, "Daca te plictisesti de un job, vei putea folosi comanda /quitjob pentru a renunta la el oricand."); } else { SendClientMessage(i, COLOR_WHITE, "Trucker is one of the 10+ jobs available on our server."); SendClientMessage(i, COLOR_WHITE, "This job requires you to deliver stuff from one city to another."); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, "To see list of all available jobs, you can use the command /jobs."); SendClientMessage(i, COLOR_WHITE, "One most jobs you'll earn the same ammount of money."); SendClientMessage(i, COLOR_WHITE, "You can test all jobs to find out which one you like better."); SendClientMessage(i, COLOR_WHITE, "If you get bored, you can use /quitjob and take another job."); } } else if(TutTime[i] == 63) { PlayerTextDrawHide(i, Step[i][5]); PlayerTextDrawShow(i, Step[i][6]); SetPlayerPosEx(i, 1504.0387,-1664.6865,14.0031); SetPlayerCameraPos(i, 1505.9124,-1694.7454,38.8016); SetPlayerCameraLookAt(i, 1533.4709,-1680.9561,29.7199); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Politistii sunt impartiti in 4 factiuni: Los Santos Police Department, Las Venturas Police Department, FBI si National Guard."); SendClientMessage(i, COLOR_WHITE, "Vei putea aplica la una din cele 4 factiuni de politisti incepand cu level 7."); SendClientMessage(i, COLOR_WHITE, "Pana ajungi la level 7, vei putea aplica la factiunile Taxi LS, Taxi LV, Las Venturas Paramedic Departament, News Reporters, School Instructors LV incepand cu level 3."); SendClientMessage(i, COLOR_WHITE, "La factiunea Hitman Agency sau la una din cele 6 mafii, vei putea aplica incepand cu level 5."); SendClientMessage(i, COLOR_WHITE, "Aplicatiile se fac pe forum (www.BG-ZONE.TK)."); SendClientMessage(i, COLOR_WHITE, "Cei care fac parte din factiuni primesc salarii saptamanale de la liderul factiunii."); } else { SendClientMessage(i, COLOR_WHITE, "Cops are divided in 4 factions: Los Santos Police Department, Las Venturas Police Department, FBI and National Guard."); SendClientMessage(i, COLOR_WHITE, "You'll be able to apply to on of the cops factions once you get level 5."); SendClientMessage(i, COLOR_WHITE, "You can apply to the factions Taxi LS, Taxi LV, Las Venturas Paramedic Departament, News Reporters and School Instructors LV once you get level 2."); SendClientMessage(i, COLOR_WHITE, "You'll need level 3 to become a Hitman or a gang member."); SendClientMessage(i, COLOR_WHITE, "You can apply to join a faction on our forum (www.BG-ZONE.TK)."); } } else if(TutTime[i] == 75) { PlayerTextDrawHide(i, Step[i][6]); PlayerTextDrawShow(i, Step[i][7]); SetPlayerPosEx(i, 1463.5978,-1050.0614,24.0156); SetPlayerCameraPos(i, 1480.6259,-1048.1523,39.7065); SetPlayerCameraLookAt(i, 1465.3987,-1025.0939,29.2015); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Aceasta este banca din orasul Los Santos. Mai exista o banca si in orasul Las Venturas."); SendClientMessage(i, COLOR_WHITE, "Banca poate fi folosita pentru a depune si retrage bani sau pentru a transfera bani unui alt player."); SendClientMessage(i, COLOR_WHITE, "Pentru banii depusi in banca vei primi dobanda odata pe ora."); SendClientMessage(i, COLOR_WHITE, "Banii primiti din payday ajung in contul bancar si va trebui sa mergeti la banca pentru a-i retrage."); SendClientMessage(i, COLOR_WHITE, "Te sfatuim sa nu imprumuti bani altor playeri deoarece nu au nicio garantie ca iti vor fi inapoiati."); SendClientMessage(i, COLOR_WHITE, "De asemenea, afacerile cu bani reali sau bunuri ce nu tin de joc(conturi steam, conturi pe alte server) sunt interzise."); SendClientMessage(i, COLOR_WHITE, "Daca cineva iti propune sa cumperi o masina in joc pentru bani reali, te sfatuim sa-l raportezi folosind comanda /report."); SendClientMessage(i, COLOR_WHITE, "Playerii ce promit ca iti vor vinde bunuri in joc pentru bani reali nu iti vor da bunurile promise."); } else { SendClientMessage(i, COLOR_WHITE, "This is the Los Santos Bank. There is also a bank in Las Venturas."); SendClientMessage(i, COLOR_WHITE, "The bank can be used to deposit and withdraw money from your bank account or transfer money to another player."); SendClientMessage(i, COLOR_WHITE, "You'll get interest from the bank for the money you have deposited in your bank account."); SendClientMessage(i, COLOR_WHITE, "Don't loan money for other players. You'll have no guaratees that you'll get them back."); SendClientMessage(i, COLOR_WHITE, "Also, buying in game goods(money, cars, houses) with real life money from other players is forbidden."); SendClientMessage(i, COLOR_WHITE, "Most People that offering in game goods for real money are scammers."); SendClientMessage(i, COLOR_WHITE, "You can get some stuff by donating(WWW.BG-ZONE.TK/premium). The money from donations are used to support the server."); } } else if(TutTime[i] == 87) { PlayerTextDrawHide(i, Step[i][7]); PlayerTextDrawShow(i, Step[i][8]); SetPlayerPosEx(i, 1093.7021,-1485.0731,15.7074); SetPlayerCameraPos(i, 1082.0146,-1426.6472,56.6048); SetPlayerCameraLookAt(i, 1127.9037,-1486.0226,22.7690); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_WHITE, "Aici este CNN Los Santos, adica locul unde poti plasa anunturi pe server."); SendClientMessage(i, COLOR_WHITE, "Anunturile sunt vazute de toti playerii de pe server si sunt folosite pentru a vinde/cumpara/schimba bunuri pe server."); SendClientMessage(i, COLOR_WHITE, "Anunturile se folosesc doar pentru vanzari, cumparari si schimburi de bunuri."); SendClientMessage(i, COLOR_WHITE, "Vei putea scrie un anunt incepand cu level 5."); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, "Si pe forumul nostru www.BG-ZONE.TK exista o sectiune de vanzari unde playerii pot posta anunturi."); } else { SendClientMessage(i, COLOR_WHITE, "This is CNN Los Santos, the place where players can place ads to buy, sell or trade stuff."); SendClientMessage(i, COLOR_WHITE, "This ads are seen by all players on the server. You'll be able to place an /ad once you reach level 5."); SendClientMessage(i, COLOR_WHITE, "Players can also use our forum (www.BG-ZONE.TK) to advertise for stuff."); } } else if(TutTime[i] == 99) { PlayerTextDrawHide(i, Step[i][8]); PlayerTextDrawHide(i, Tutorial[i]); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_WHITE, ""); if(PlayerInfo[i][pLanguage] == 2) { SendClientMessage(i, COLOR_YELLOW, "Ai ajuns la sfarsitul tutorialului. Daca ai fost atent, ar trebui sa stii cateva lucruri despre joc."); SendClientMessage(i, COLOR_YELLOW, "Daca ai vreo intrebare legata de joc, foloseste /n si helperii vor incerca sa te ajute."); SendClientMessage(i, COLOR_YELLOW, "Poti folosi si /help pentru comenzi de baza."); SendClientMessage(i, COLOR_YELLOW, "Distractie placuta!"); SendClientMessage(i, COLOR_YELLOW, "Tasteaza comanda /bonus!"); SendClientMessage(i, COLOR_YELLOW, ""); } else { SendClientMessage(i, COLOR_YELLOW, "We reached the end of the tutorial. We hope you learned something about the game."); SendClientMessage(i, COLOR_YELLOW, "If you have any game-questions, you can use /n and our helpers will try to help you."); SendClientMessage(i, COLOR_YELLOW, "You cand also use /help for basic commands."); SendClientMessage(i, COLOR_YELLOW, "Have fun!"); SendClientMessage(i, COLOR_YELLOW, "Type comand /bonus!"); SendClientMessage(i, COLOR_YELLOW, ""); } CP[i] = 43; SetPlayerCheckpoint(i, 1219.0502,-1812.7823,16.5938, 4.0); StopAudioStreamForPlayer(i); } else if(TutTime[i] == 101) { TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; TogglePlayerControllable(i, 1); SetCameraBehindPlayer(i); TogglePlayerSpectating(i, 0); SetPlayerSpawn(i); PlayerInfo[i][pAccount] = 50000; ResetPlayerCash(i); GivePlayerCash(i,500000); SetPlayerInterior(i,0); SetPlayerVirtualWorld(i,0); TogglePlayerControllable(i,true); new str1[256]; mysql_format(SQL,str1,256,"UPDATE users SET `Tutorial`='1',`Bank`='50000',`PremiumPoints`='0' WHERE `name`='%s'",PlayerInfo[i][pNormalName]); mysql_tquery(SQL,str1,"",""); } } Imagini / Video (optional):-Ati incercat sa rezolvati singur?: da dar imi da eroare..
-
Problema intalnita (descriere):Nu mi se salveaza Clanu tag-u rank-u si numele tagului in /stats , deci imi fac clan imi apare in /stats dupa ce dau restart imi dispare.. m-am uitat la onplayerdisconnect peste tot si nu inteleg de ce..Ero(area / rile) / warning-(ul / urile):n-am erori.Liniile de cod / sursa / script-ul(obligatoriu): enum clanE { cClanName[64], cClanMOTD[128], cClanRankName1[32], cClanRankName2[32], cClanRankName3[32], cClanRankName4[32], cClanRankName5[32], cClanRankName6[32], cClanRankName7[32], cClanTag[32], cClanTagType, cClanID, cClanExpire, cClanActive, cClanSlots, cClanColor[10], cClanDesc[256], };Imagini / Video (optional):n-amAti incercat sa rezolvati singur?: Da.
-
Am rezolvat, multumesc mult pentru ajutor.
-
incearca in loc de SetPlayerCash 'GivePlayerMoney' sau 'GivePlayerCash'
-
Am scapat de erorii dar degeaba tot nu merge.. dai /shop se cumpara si dupa imi apare ala cu 'Da' sau 'Inapoi'
-
Primesc urmatoarele erori C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(40) : error 017: undefined symbol "AntiDeAMX" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(4219) : error 004: function "vUpdate" is not implemented C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(4514) : error 017: undefined symbol "GetPlayerHealthEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(4519) : error 017: undefined symbol "SetPlayerHealthEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(4523) : error 017: undefined symbol "SetPlayerHealthEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(4960) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(6039) : error 017: undefined symbol "GetPlayerHealthEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(7623) : error 017: undefined symbol "ClearWanted" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(7970) : error 017: undefined symbol "SetPlayerArmourEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8272) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8286) : error 017: undefined symbol "SetPlayerArmourEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8331) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8355) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8380) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8405) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8430) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8478) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8497) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8508) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8524) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8533) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8540) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8549) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8557) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8570) : error 017: undefined symbol "SetPlayerPosEx" C:\Users\Andrei\Desktop\s4uriK\gamemodes\gm.pwn(8585) : error 017: undefined symbol "SetPlayerPosEx"
-
Problema intalnita (descriere):vreau cand dau /shop si sa cumpar ceva intai sa-mi apara un dialog cu 'Da' sau 'Nu' intai sa ma intrebe daca vreau sa cumpar.Ero(area / rile) / warning-(ul / urile):n-am erori.Liniile de cod / sursa / script-ul(obligatoriu): if(listitem == 5) { if(PlayerInfo[playerid][pWarns] <= 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have any warn."); return 1; } if(PlayerInfo[playerid][pPremiumPoints] < 19) return SCM(playerid, COLOR_GREY, "Eroare: Ai nevoie de 20 puncte premium pentru a lua acest produs."); PlayerInfo[playerid][pPremiumPoints] -= 20; Update(playerid, pPremiumPointsx); PlayerInfo[playerid][pWarns] = 0; new str[300],strings[200],name[30],stringss[200]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Warnings`='0',`PremiumPoints`='%d' WHERE `name`='%s'",PlayerInfo[playerid [pPremiumPoints],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); SendClientMessage(playerid, COLOR_YELLOW, "You have cleared your warns! (-20 premium points)"); GetPlayerName(playerid, name, sizeof(name)); format(strings, sizeof(strings), "/shop: %s cleared his warns.",name); ABroadCast(COLOR_YELLOW,strings,6); mysql_real_escape_string(strings, stringss); mysql_format(SQL,str,sizeof(str), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[playerid][pSQLID],stringss); mysql_tquery(SQL,str,"",""); ShowPlayerDialog(playerid, DIALOG_CUMPARA, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi"); } Imagini / Video (optional):-Ati incercat sa rezolvati singur?: da am adaugat asta ShowPlayerDialog(playerid, DIALOG_CUMPARA, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi");, dar degeaba am adaugat-o pentru ca dau /shop aleg intai imi cumpara produsu si apoi apare dialogu..
-
Cauta pe google 'Cum imi fac server de samp', succes!
-
Arata tot script-ul.
-
Problema intalnita (descriere):vreau cand dau /shop si sa cumpar ceva intai sa-mi apara un dialog cu 'Da' sau 'Nu' intai sa ma intrebe daca vreau sa cumpar.Ero(area / rile) / warning-(ul / urile):n-am erori.Liniile de cod / sursa / script-ul(obligatoriu): if(listitem == 5) { if(PlayerInfo[playerid][pWarns] <= 0) { SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have any warn."); return 1; } if(PlayerInfo[playerid][pPremiumPoints] < 19) return SCM(playerid, COLOR_GREY, "Eroare: Ai nevoie de 20 puncte premium pentru a lua acest produs."); PlayerInfo[playerid][pPremiumPoints] -= 20; Update(playerid, pPremiumPointsx); PlayerInfo[playerid][pWarns] = 0; new str[300],strings[200],name[30],stringss[200]; mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Warnings`='0',`PremiumPoints`='%d' WHERE `name`='%s'",PlayerInfo[playerid [pPremiumPoints],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); SendClientMessage(playerid, COLOR_YELLOW, "You have cleared your warns! (-20 premium points)"); GetPlayerName(playerid, name, sizeof(name)); format(strings, sizeof(strings), "/shop: %s cleared his warns.",name); ABroadCast(COLOR_YELLOW,strings,6); mysql_real_escape_string(strings, stringss); mysql_format(SQL,str,sizeof(str), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[playerid][pSQLID],stringss); mysql_tquery(SQL,str,"",""); ShowPlayerDialog(playerid, DIALOG_CUMPARA, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi"); } Imagini / Video (optional):-Ati incercat sa rezolvati singur?: da am adaugat asta ShowPlayerDialog(playerid, DIALOG_CUMPARA, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi");, dar degeaba am adaugat-o pentru ca dau /shop aleg intai imi cumpara produsu si apoi apare dialogu..
-
Ma ajuta si pe mine cineva cu aceasta problema?
-
Pai nu este gresita.
-
Nu se conecteaza panel-u am adaugat datele bine si EN: Something went wrong. If you are the administrator, check error_log.RO: Ceva nu a mers bine. Daca tu esti administratorul, verifica error_log. imi da eroare in error_log cu SQLSTATE[HY000] [1045] Access denied for user 'andreir1_samp'@'5.154.240.83' (using password: YES) SQLSTATE[HY000] [1045] Access denied for user 'andreir1_samp'@'5.154.240.83' (using password: YES) ala nu e ip-u care este in config.. nu stiu deunde preaia ip-u ala.. Am cautat in toate folderele ip-u cu CTRL+F dar nimic.. conectarea e pusa bine uite: <?php class Config { private static $instance; public static $g_con; public static $_url = array(); private static $_pages = array( 'bid','donations','adminpanel','jobs','change','terms','privacy','contact','paysafecard','fcomplaints','ticketgeneral','ticketpay','tickets','checkmail','war','changemail','createcomplaint','mycomplaints','complaint','complaints','adminpanel','leader','clan','wars','staff','online','search','banlist','members','top','vehicles','houses','businesses','login','logs','profile','logout', 'leader','admin','premium','forum','ticket','replyticket','seeticket','ban','unban','invite','leaderp','uninvite', 'fup','fdown','rup','rdown','logleaderp','lock','del','unlock','unban','setunban','richlist','panelrestrict','deleterestrict', 'accountsp','restrictp','lp','t','recover','mail','mysettings','factionslist','deconnect','maill','delete','wipemfactions','wipe!', 'applications','viewapplication','apply','notifications','change_password','delnot','recover','resetare','sellhouse','helperpanel','iphone' ); public static $_PAGE_URL = 'http://panel.bg-zone.tk/'; public static $_IP = '93.114.82.211:7777'; public static $_SITE_NAME = 'BG-ZONE PANEL'; public static $factions = array(); public static $logs = array(); public static $vehColors = array(); public static $facColors = array(); public static $namevehicles = array(); public static $ccat = array(); public static $jobs = array(); private function __construct() { $db['mysql'] = array( 'host' => '193.84.64.208', 'username' => 'andreir1_samp', 'dbname' => 'andreir1_samp', 'password' => 'vg2TX4WNCdsfew1206' ); try { self::$g_con = new PDO('mysql:host='.$db['mysql']['host'].';dbname='.$db['mysql']['dbname'].';charset=utf8',$db['mysql']['username'],$db['mysql']['password']); self::$g_con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); self::$g_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { @file_put_contents('error_log',@file_get_contents('error_log') . $e->getMessage() . "\n"); die('EN: Something went wrong. If you are the administrator, check error_log.<br />RO: Ceva nu a mers bine. Daca tu esti administratorul, verifica error_log.'); } self::_getUrl(); self::arrays(); } public static function formatName($id,$name = null,$faction = null) { if($name == null) { $data = User::getData($id,array('Member','Name')); $name = $data['Name']; $faction = $data['Member']; } $color = Arrays::$_factions[$faction]['color']; $name = '<a href="'.Config::$_PAGE_URL.'profile/'.$id.'" style="color:' . (!$faction ? '#919191' : $color ) . ';" onmouseover="this.style.textDecoration = \'none\'; " class="profile" id="'.$id.'">' . $name . '</a>'; return $name; } public static function init() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; } private static function _getUrl() { $url = isset($_GET['page']) ? $_GET['page'] : null; $url = rtrim($url, '/'); $url = filter_var($url, FILTER_SANITIZE_URL); self::$_url = explode('/', $url); } public static function getContent() { if(isset(self::$_url[0]) && self::$_url[0] === 'signature') include_once 'inc/pages/signature.p.php'; include_once 'inc/header.inc.php'; if(self::$_url[0] === 'admin' && isset(self::$_url[1]) && file_exists('inc/pages/admin/' . self::$_url[1] . '.a.php')) include 'inc/pages/admin/' . self::$_url[1] . '.a.php'; elseif(self::$_url[0] === 'admin') include 'inc/pages/admin/index.a.php'; else if(in_array(self::$_url[0],self::$_pages)) include 'inc/pages/' . self::$_url[0] . '.p.php'; else include_once 'inc/pages/index.p.php'; include_once 'inc/footer.inc.php'; } public static function rows($table) { if(is_array($table)) { $rows = 0; foreach($table as $val) { $q = self::$g_con->prepare("SELECT * FROM `".$val."`"); $q->execute(); $rows += $q->rowCount(); } return $rows; } $q = self::$g_con->prepare("SELECT * FROM `".$table."`"); $q->execute(); return $q->rowCount(); } public static function _getPage() { return self::$_url[0]; } public static function getPage() { return isset(self::$_url[2]) ? self::$_url[2] : 1; } public static function isActive($active) { if(is_array($active)) { foreach($active as $ac) { if($ac === self::$_url[0]) return ' class="active"'; } return; } else return self::$_url[0] === $active ? ' class="active"' : false; } public static function message($label,$text,$custom = null) { if(isset($custom)) return '<' . $custom . '><span class="label label-'.$label.'">'.$text.'</span></' . $custom . '>'; else return '<span class="label label-'.$label.'">'.$text.'</span>'; } public static function getDate($timestamp,$time = false){ if(!$timestamp) return 1; $difference = time() - $timestamp; if($difference < 0) return 'just now'; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { $ending = "ago"; } else { $difference = -$difference; $ending = "to go"; } if(!$difference) return 'just now'; for($j = 0; $difference >= $lengths[$j]; $j++) $difference /= $lengths[$j]; $difference = round($difference); if($difference != 1) $periods[$j].= "s"; if($time) $text = "$difference $periods[$j]"; else $text = "$difference $periods[$j] $ending"; return $text; } private static function arrays() { self::$namevehicles = array( 400 => "Landstalker", 401 => "Bravura", 402 => "Buffalo", 403 => "Linerunner", 404 => "Perrenial", 405 => "Sentinel", 406 => "Dumper", 407 => "Firetruck", 408 => "Trashmaster", 409 => "Stretch", 410 => "Manana", 411 => "Infernus", 412 => "Voodoo", 413 => "Pony", 414 => "Mule", 415 => "Cheetah", 416 => "Ambulance", 417 => "Leviathan", 418 => "Moonbeam", 419 => "Esperanto", 420 => "Taxi", 421 => "Washington", 422 => "Bobcat", 423 => "Whoopee", 424 => "BFInjection", 425 => "Hunter", 426 => "Premier", 427 => "Enforcer", 428 => "Securicar", 429 => "Banshee", 430 => "Predator", 431 => "Bus", 432 => "Rhino", 433 => "Barracks", 434 => "Hotknife", 435 => "Trailer", 436 => "Previon", 437 => "Coach", 438 => "Cabbie", 439 => "Stallion", 440 => "Rumpo", 441 => "RCBandit", 442 => "Romero", 443 => "Packer", 444 => "Monster", 445 => "Admiral", 446 => "Squalo", 447 => "Seasparrow", 448 => "Pizzaboy", 449 => "Tram", 450 => "Trailer", 451 => "Turismo", 452 => "Speeder", 453 => "Reefer", 454 => "Tropic", 455 => "Flatbed", 456 => "Yankee", 457 => "Caddy", 458 => "Solair", 459 => "Berkley\'sRCVan", 460 => "Skimmer", 461 => "PCJ-600", 462 => "Faggio", 463 => "Freeway", 464 => "RCBaron", 465 => "RCRaider", 466 => "Glendale", 467 => "Oceanic", 468 => "Sanchez", 469 => "Sparrow", 470 => "Patriot", 471 => "Quad", 472 => "Coastguard", 473 => "Dinghy", 474 => "Hermes", 475 => "Sabre", 476 => "Rustler", 477 => "ZR-350", 478 => "Walton", 479 => "Regina", 480 => "Comet", 481 => "BMX", 482 => "Burrito", 483 => "Camper", 484 => "Marquis", 485 => "Baggage", 486 => "Dozer", 487 => "Maverick", 488 => "NewsChopper", 489 => "Rancher", 490 => "FBIRancher", 491 => "Virgo", 492 => "Greenwood", 493 => "Jetmax", 494 => "Hotring", 495 => "Sandking", 496 => "BlistaCompact", 497 => "PoliceMaverick", 498 => "Boxville", 499 => "Benson", 500 => "Mesa", 501 => "RCGoblin", 502 => "HotringRacerA", 503 => "HotringRacerB", 504 => "BloodringBanger", 505 => "Rancher", 506 => "SuperGT", 507 => "Elegant", 508 => "Journey", 509 => "Bike", 510 => "MountainBike", 511 => "Beagle", 512 => "Cropduster", 513 => "Stunt", 514 => "Tanker", 515 => "Roadtrain", 516 => "Nebula", 517 => "Majestic", 518 => "Buccaneer", 519 => "Shamal", 520 => "Hydra", 521 => "FCR-900", 522 => "NRG-500", 523 => "HPV1000", 524 => "CementTruck", 525 => "TowTruck", 526 => "Fortune", 527 => "Cadrona", 528 => "FBITruck",529 => "Willard", 530 => "Forklift", 531 => "Tractor", 532 => "Combine", 533 => "Feltzer", 534 => "Remington", 535 => "Slamvan", 536 => "Blade", 537 => "Freight",538 => "Streak", 539 => "Vortex", 540 => "Vincent", 541 => "Bullet", 542 => "Clover", 543 => "Sadler", 544 => "Firetruck", 545 => "Hustler", 546 => "Intruder", 547 => "Primo", 548 => "Cargobob", 549 => "Tampa", 550 => "Sunrise", 551 => "Merit", 552 => "Utility", 553 => "Nevada", 554 => "Yosemite", 555 => "Windsor", 556 => "Monster", 557 => "Monster", 558 => "Uranus", 559 => "Jester", 560 => "Sultan", 561 => "Stratium", 562 => "Elegy", 563 => "Raindance", 564 => "RCTiger", 565 => "Flash", 566 => "Tahoma", 567 => "Savanna", 568 => "Bandito", 569 => "FreightFlat", 570 => "StreakCarriage", 571 => "Kart", 572 => "Mower", 573 => "Dune", 574 => "Sweeper", 575 => "Broadway", 576 => "Tornado", 577 => "AT-400", 578 => "DFT-30", 579 => "Huntley", 580 => "Stafford", 581 => "BF-400", 582 => "NewsVan", 583 => "Tug", 584 => "Trailer", 585 => "Emperor", 586 => "Wayfarer", 587 => "Euros", 588 => "Hotdog", 589 => "Club", 590 => "FreightBox", 591 => "Trailer", 592 => "Andromada", 593 => "Dodo", 594 => "RCCam", 595 => "Launch", 596 => "PoliceCar", 597 => "PoliceCar", 598 => "PoliceCar", 599 => "PoliceRanger", 600 => "Picador", 601 => "S.W.A.T", 602 => "Alpha", 603 => "Phoenix", 604 => "Glendale", 605 => "Sadler", 606 => "Luggage", 607 => "Luggage", 608 => "Stairs", 609 => "Boxville", 610 => "Tiller", 611 => "UtilityTrailer" ); self::$ccat = array( 0 => '', 1 => 'Sport Vehicles', 2 => 'Saloons', 3 => '#1E519D', 4 => '#FF4800', 5 => '#8F8C47', 6 => '#FFFF00', 7 => '#33CCFF', 8 => '#AA3333', 9 => '#C2A2DA', 10 => '#F5DEB3', 11 => '#40863C', 12 => '#D900D9', 13 => '#FD7E00', 14 => '#B4BBCF', 15 => '#6A4444', 16 => '#45382A', 17 => '#E1F0E6', 18 => '#81A383' ); self::$factions = array( 0 => 'Civilian', 1 => 'Los Santos Police Department', 2 => 'Federal Bureau of Investigation', 3 => 'National Guard', 4 => 'Los Aztecas', 5 => 'Grove Street', 6 => 'Los Vagos', //7 => 'Gov', 8 => 'Las Venturas Police Department', 9 => 'News Reporters', 10 => 'Ballas', 11 => 'Hitman Agency', 12 => 'School Instructors', 13 => 'Taxi LS', 14 => 'Paramedic Department LV', 15 => 'The Rifa', 16 => 'The Russian Mafia', 17 => 'Taxi LV' ); self::$jobs = array( 0 => 'Unemployed', 1 => 'Detective', 2 => 'Car Jacker', 4 => 'Drugs Dealer', 5 => 'Pizza Boy', 6 => 'Farmer', 7 => 'Bus Driver', 8 => 'Mechanic', 9 => 'Arms Dealer', 10 => 'Garbage', 13 => 'Fisherman', 14 => 'Trucker' ); self::$logs = array( 'logpolitiaromana' => 'Politia Romana', 'logserviciulroman' => 'S.R.I', 'logarmataromana' => 'Armata Romana', 'logsmurd' => 'S.M.U.R.D', 'logprimar' => 'Guvern', 'logtaxi' => 'Taxi', 'loginstructor' => 'School Instructor', 'loghitman' => 'Hitman Agency', 'logremorcari' => 'T.C.C', 'logsadoveanu' => 'Grove Street', 'logcorsicanu' => 'Stracci', 'logtobosaru' => 'Ballas', 'logcamataru' => 'Corleone', ); self::$vehColors = array( 'grey', '#CEB8F6', '#2A77A1', '#840410', '#263739', '#86446E', '#D78E10', '#4C75B7', '#BDBEC6', '#5E7072', '#46597A', '#656A79', '#5D7E8D', '#58595A', '#D6DAD6', '#9CA1A3', '#335F3F', '#730E1A', '#7B0A2A', '#9F9D94', '#3B4E78', '#732E3E', '#691E3B', '#96918C', '#515459', '#3F3E45', '#A5A9A7', '#635C5A', '#3D4A68', '#979592', '#421F21', '#5F272B', '#8494AB', '#767B7C', '#646464', '#5A5752', '#252527', '#2D3A35', '#93A396', '#6D7A88', '#221918', '#6F675F', '#7C1C2A', '#5F0A15', '#193826', '#5D1B20', '#9D9872', '#7A7560', '#989586', '#ADB0B0', '#848988', '#304F45', '#4D6268', '#162248', '#272F4B', '#7D6256', '#9EA4AB', '#9C8D71', '#6D1822', '#4E6881', '#9C9C98', '#917347', '#661C26', '#949D9F', '#A4A7A5', '#8E8C46', '#341A1E', '#6A7A8C', '#AAAD8E', '#AB988F', '#851F2E', '#6F8297', '#585853', '#9AA790', '#601A23', '#20202C', '#A4A096', '#AA9D84', '#78222B', '#0E316D', '#722A3F', '#7B715E', '#741D28', '#1E2E32', '#4D322F', '#7C1B44', '#2E5B20', '#395A83', '#6D2837', '#A7A28F', '#AFB1B1', '#364155', '#6D6C6E', '#0F6A89', '#204B6B', '#2B3E57', '#9B9F9D', '#6C8495', '#4D8495', '#AE9B7F', '#406C8F', '#1F253B', '#AB9276', '#134573', '#96816C', '#64686A', '#105082', '#A19983', '#385694', '#525661', '#7F6956', '#8C929A', '#596E87', '#473532', '#44624F', '#730A27', '#223457', '#640D1B', '#A3ADC6', '#695853', '#9B8B80', '#620B1C', '#5B5D5E', '#624428', '#731827', '#1B376D', '#EC6AAE', '#000000', '#177517', '#210606', '#125478', '#452A0D', '#571E1E', '#010701', '#25225A', '#2C89AA', '#8A4DBD', '#35963A', '#B7B7B7', '#464C8D', '#84888C', '#817867', '#817A26', '#6A506F', '#583E6F', '#8CB972', '#824F78', '#6D276A', '#1E1D13', '#1E1306', '#1F2518', '#2C4531', '#1E4C99', '#2E5F43', '#1E9948', '#1E9999', '#999976', '#7C8499', '#992E1E', '#2C1E08', '#142407', '#993E4D', '#1E4C99', '#198181', '#1A292A', '#16616F', '#1B6687', '#6C3F99', '#481A0E', '#7A7399', '#746D99', '#53387E', '#222407', '#3E190C', '#46210E', '#991E1E', '#8D4C8D', '#805B80', '#7B3E7E', '#3C1737', '#733517', '#781818', '#83341A', '#8E2F1C', '#7E3E53', '#7C6D7C', '#020C02', '#072407', '#163012', '#16301B', '#642B4F', '#368452', '#999590', '#818D96', '#99991E', '#7F994C', '#839292', '#788222', '#2B3C99', '#3A3A0B', '#8A794E', '#0E1F49', '#15371C', '#15273A', '#375775', '#060820', '#071326', '#20394B', '#2C5089', '#15426C', '#103250', '#241663', '#692015', '#8C8D94', '#516013', '#090F02', '#8C573A', '#52888E', '#995C52', '#99581E', '#993A63', '#998F4E', '#99311E', '#0D1842', '#521E1E', '#42420D', '#4C991E', '#082A1D', '#96821D', '#197F19', '#3B141F', '#745217', '#893F8D', '#7E1A6C', '#0B370B', '#27450D', '#071F24', '#784573', '#8A653A', '#732617', '#319490', '#56941D', '#59163D', '#1B8A2F', '#38160B', '#041804', '#355D8E', '#2E3F5B', '#561A28', '#4E0E27', '#706C67', '#3B3E42', '#2E2D33', '#7B7E7D', '#4A4442', '#28344E' ); self::$facColors = array( 0 => '#E8E8E8', 1 => '#2641FE', 2 => '#2641FE', 3 => '#1E519D', 4 => '#FF4800', 5 => '#8F8C47', 6 => '#FFFF00', 7 => '#33CCFF', 8 => '#AA3333', 9 => '#C2A2DA', 10 => '#F5DEB3', 11 => '#40863C', 12 => '#D900D9', 13 => '#FD7E00', 14 => '#B4BBCF', 15 => '#6A4444', 16 => '#45382A', 17 => '#E1F0E6', 18 => '#81A383' ); } public static function getData($table,$data,$id) { $q = Config::$g_con->prepare('SELECT `'.$data.'` FROM `'.$table.'` WHERE `id` = ?'); $q->execute(array($id)); $r_data = $q->fetch(); return $r_data[$data]; } public static function getID($table, $data, $name) { $q = Config::$g_con->prepare('SELECT `'.$data.'` FROM `'.$table.'` WHERE `name` = ?'); $q->execute(array($name)); $r_data = $q->fetch(); return $r_data[$data]; } } ?>
-
Nu stie nimeni?
-
Salut, ma poti ajuta cu o problema? Am un panel si nu inteleg de ce nu se conecteaza..
-
Am cautat in toate folderele ip-u cu CTRL+F dar nimic.. conectarea e pusa bine uite: <?php class Config { private static $instance; public static $g_con; public static $_url = array(); private static $_pages = array( 'bid','donations','adminpanel','jobs','change','terms','privacy','contact','paysafecard','fcomplaints','ticketgeneral','ticketpay','tickets','checkmail','war','changemail','createcomplaint','mycomplaints','complaint','complaints','adminpanel','leader','clan','wars','staff','online','search','banlist','members','top','vehicles','houses','businesses','login','logs','profile','logout', 'leader','admin','premium','forum','ticket','replyticket','seeticket','ban','unban','invite','leaderp','uninvite', 'fup','fdown','rup','rdown','logleaderp','lock','del','unlock','unban','setunban','richlist','panelrestrict','deleterestrict', 'accountsp','restrictp','lp','t','recover','mail','mysettings','factionslist','deconnect','maill','delete','wipemfactions','wipe!', 'applications','viewapplication','apply','notifications','change_password','delnot','recover','resetare','sellhouse','helperpanel','iphone' ); public static $_PAGE_URL = 'http://panel.bg-zone.tk/'; public static $_IP = '93.114.82.211:7777'; public static $_SITE_NAME = 'BG-ZONE PANEL'; public static $factions = array(); public static $logs = array(); public static $vehColors = array(); public static $facColors = array(); public static $namevehicles = array(); public static $ccat = array(); public static $jobs = array(); private function __construct() { $db['mysql'] = array( 'host' => '193.84.64.208', 'username' => 'andreir1_samp', 'dbname' => 'andreir1_samp', 'password' => 'vg2TX4WNCdsfew1206' ); try { self::$g_con = new PDO('mysql:host='.$db['mysql']['host'].';dbname='.$db['mysql']['dbname'].';charset=utf8',$db['mysql']['username'],$db['mysql']['password']); self::$g_con->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); self::$g_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { @file_put_contents('error_log',@file_get_contents('error_log') . $e->getMessage() . "\n"); die('EN: Something went wrong. If you are the administrator, check error_log.<br />RO: Ceva nu a mers bine. Daca tu esti administratorul, verifica error_log.'); } self::_getUrl(); self::arrays(); } public static function formatName($id,$name = null,$faction = null) { if($name == null) { $data = User::getData($id,array('Member','Name')); $name = $data['Name']; $faction = $data['Member']; } $color = Arrays::$_factions[$faction]['color']; $name = '<a href="'.Config::$_PAGE_URL.'profile/'.$id.'" style="color:' . (!$faction ? '#919191' : $color ) . ';" onmouseover="this.style.textDecoration = \'none\'; " class="profile" id="'.$id.'">' . $name . '</a>'; return $name; } public static function init() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; } private static function _getUrl() { $url = isset($_GET['page']) ? $_GET['page'] : null; $url = rtrim($url, '/'); $url = filter_var($url, FILTER_SANITIZE_URL); self::$_url = explode('/', $url); } public static function getContent() { if(isset(self::$_url[0]) && self::$_url[0] === 'signature') include_once 'inc/pages/signature.p.php'; include_once 'inc/header.inc.php'; if(self::$_url[0] === 'admin' && isset(self::$_url[1]) && file_exists('inc/pages/admin/' . self::$_url[1] . '.a.php')) include 'inc/pages/admin/' . self::$_url[1] . '.a.php'; elseif(self::$_url[0] === 'admin') include 'inc/pages/admin/index.a.php'; else if(in_array(self::$_url[0],self::$_pages)) include 'inc/pages/' . self::$_url[0] . '.p.php'; else include_once 'inc/pages/index.p.php'; include_once 'inc/footer.inc.php'; } public static function rows($table) { if(is_array($table)) { $rows = 0; foreach($table as $val) { $q = self::$g_con->prepare("SELECT * FROM `".$val."`"); $q->execute(); $rows += $q->rowCount(); } return $rows; } $q = self::$g_con->prepare("SELECT * FROM `".$table."`"); $q->execute(); return $q->rowCount(); } public static function _getPage() { return self::$_url[0]; } public static function getPage() { return isset(self::$_url[2]) ? self::$_url[2] : 1; } public static function isActive($active) { if(is_array($active)) { foreach($active as $ac) { if($ac === self::$_url[0]) return ' class="active"'; } return; } else return self::$_url[0] === $active ? ' class="active"' : false; } public static function message($label,$text,$custom = null) { if(isset($custom)) return '<' . $custom . '><span class="label label-'.$label.'">'.$text.'</span></' . $custom . '>'; else return '<span class="label label-'.$label.'">'.$text.'</span>'; } public static function getDate($timestamp,$time = false){ if(!$timestamp) return 1; $difference = time() - $timestamp; if($difference < 0) return 'just now'; $periods = array("second", "minute", "hour", "day", "week", "month", "year", "decade"); $lengths = array("60","60","24","7","4.35","12","10"); if ($difference > 0) { $ending = "ago"; } else { $difference = -$difference; $ending = "to go"; } if(!$difference) return 'just now'; for($j = 0; $difference >= $lengths[$j]; $j++) $difference /= $lengths[$j]; $difference = round($difference); if($difference != 1) $periods[$j].= "s"; if($time) $text = "$difference $periods[$j]"; else $text = "$difference $periods[$j] $ending"; return $text; } private static function arrays() { self::$namevehicles = array( 400 => "Landstalker", 401 => "Bravura", 402 => "Buffalo", 403 => "Linerunner", 404 => "Perrenial", 405 => "Sentinel", 406 => "Dumper", 407 => "Firetruck", 408 => "Trashmaster", 409 => "Stretch", 410 => "Manana", 411 => "Infernus", 412 => "Voodoo", 413 => "Pony", 414 => "Mule", 415 => "Cheetah", 416 => "Ambulance", 417 => "Leviathan", 418 => "Moonbeam", 419 => "Esperanto", 420 => "Taxi", 421 => "Washington", 422 => "Bobcat", 423 => "Whoopee", 424 => "BFInjection", 425 => "Hunter", 426 => "Premier", 427 => "Enforcer", 428 => "Securicar", 429 => "Banshee", 430 => "Predator", 431 => "Bus", 432 => "Rhino", 433 => "Barracks", 434 => "Hotknife", 435 => "Trailer", 436 => "Previon", 437 => "Coach", 438 => "Cabbie", 439 => "Stallion", 440 => "Rumpo", 441 => "RCBandit", 442 => "Romero", 443 => "Packer", 444 => "Monster", 445 => "Admiral", 446 => "Squalo", 447 => "Seasparrow", 448 => "Pizzaboy", 449 => "Tram", 450 => "Trailer", 451 => "Turismo", 452 => "Speeder", 453 => "Reefer", 454 => "Tropic", 455 => "Flatbed", 456 => "Yankee", 457 => "Caddy", 458 => "Solair", 459 => "Berkley\'sRCVan", 460 => "Skimmer", 461 => "PCJ-600", 462 => "Faggio", 463 => "Freeway", 464 => "RCBaron", 465 => "RCRaider", 466 => "Glendale", 467 => "Oceanic", 468 => "Sanchez", 469 => "Sparrow", 470 => "Patriot", 471 => "Quad", 472 => "Coastguard", 473 => "Dinghy", 474 => "Hermes", 475 => "Sabre", 476 => "Rustler", 477 => "ZR-350", 478 => "Walton", 479 => "Regina", 480 => "Comet", 481 => "BMX", 482 => "Burrito", 483 => "Camper", 484 => "Marquis", 485 => "Baggage", 486 => "Dozer", 487 => "Maverick", 488 => "NewsChopper", 489 => "Rancher", 490 => "FBIRancher", 491 => "Virgo", 492 => "Greenwood", 493 => "Jetmax", 494 => "Hotring", 495 => "Sandking", 496 => "BlistaCompact", 497 => "PoliceMaverick", 498 => "Boxville", 499 => "Benson", 500 => "Mesa", 501 => "RCGoblin", 502 => "HotringRacerA", 503 => "HotringRacerB", 504 => "BloodringBanger", 505 => "Rancher", 506 => "SuperGT", 507 => "Elegant", 508 => "Journey", 509 => "Bike", 510 => "MountainBike", 511 => "Beagle", 512 => "Cropduster", 513 => "Stunt", 514 => "Tanker", 515 => "Roadtrain", 516 => "Nebula", 517 => "Majestic", 518 => "Buccaneer", 519 => "Shamal", 520 => "Hydra", 521 => "FCR-900", 522 => "NRG-500", 523 => "HPV1000", 524 => "CementTruck", 525 => "TowTruck", 526 => "Fortune", 527 => "Cadrona", 528 => "FBITruck",529 => "Willard", 530 => "Forklift", 531 => "Tractor", 532 => "Combine", 533 => "Feltzer", 534 => "Remington", 535 => "Slamvan", 536 => "Blade", 537 => "Freight",538 => "Streak", 539 => "Vortex", 540 => "Vincent", 541 => "Bullet", 542 => "Clover", 543 => "Sadler", 544 => "Firetruck", 545 => "Hustler", 546 => "Intruder", 547 => "Primo", 548 => "Cargobob", 549 => "Tampa", 550 => "Sunrise", 551 => "Merit", 552 => "Utility", 553 => "Nevada", 554 => "Yosemite", 555 => "Windsor", 556 => "Monster", 557 => "Monster", 558 => "Uranus", 559 => "Jester", 560 => "Sultan", 561 => "Stratium", 562 => "Elegy", 563 => "Raindance", 564 => "RCTiger", 565 => "Flash", 566 => "Tahoma", 567 => "Savanna", 568 => "Bandito", 569 => "FreightFlat", 570 => "StreakCarriage", 571 => "Kart", 572 => "Mower", 573 => "Dune", 574 => "Sweeper", 575 => "Broadway", 576 => "Tornado", 577 => "AT-400", 578 => "DFT-30", 579 => "Huntley", 580 => "Stafford", 581 => "BF-400", 582 => "NewsVan", 583 => "Tug", 584 => "Trailer", 585 => "Emperor", 586 => "Wayfarer", 587 => "Euros", 588 => "Hotdog", 589 => "Club", 590 => "FreightBox", 591 => "Trailer", 592 => "Andromada", 593 => "Dodo", 594 => "RCCam", 595 => "Launch", 596 => "PoliceCar", 597 => "PoliceCar", 598 => "PoliceCar", 599 => "PoliceRanger", 600 => "Picador", 601 => "S.W.A.T", 602 => "Alpha", 603 => "Phoenix", 604 => "Glendale", 605 => "Sadler", 606 => "Luggage", 607 => "Luggage", 608 => "Stairs", 609 => "Boxville", 610 => "Tiller", 611 => "UtilityTrailer" ); self::$ccat = array( 0 => '', 1 => 'Sport Vehicles', 2 => 'Saloons', 3 => '#1E519D', 4 => '#FF4800', 5 => '#8F8C47', 6 => '#FFFF00', 7 => '#33CCFF', 8 => '#AA3333', 9 => '#C2A2DA', 10 => '#F5DEB3', 11 => '#40863C', 12 => '#D900D9', 13 => '#FD7E00', 14 => '#B4BBCF', 15 => '#6A4444', 16 => '#45382A', 17 => '#E1F0E6', 18 => '#81A383' ); self::$factions = array( 0 => 'Civilian', 1 => 'Los Santos Police Department', 2 => 'Federal Bureau of Investigation', 3 => 'National Guard', 4 => 'Los Aztecas', 5 => 'Grove Street', 6 => 'Los Vagos', //7 => 'Gov', 8 => 'Las Venturas Police Department', 9 => 'News Reporters', 10 => 'Ballas', 11 => 'Hitman Agency', 12 => 'School Instructors', 13 => 'Taxi LS', 14 => 'Paramedic Department LV', 15 => 'The Rifa', 16 => 'The Russian Mafia', 17 => 'Taxi LV' ); self::$jobs = array( 0 => 'Unemployed', 1 => 'Detective', 2 => 'Car Jacker', 4 => 'Drugs Dealer', 5 => 'Pizza Boy', 6 => 'Farmer', 7 => 'Bus Driver', 8 => 'Mechanic', 9 => 'Arms Dealer', 10 => 'Garbage', 13 => 'Fisherman', 14 => 'Trucker' ); self::$logs = array( 'logpolitiaromana' => 'Politia Romana', 'logserviciulroman' => 'S.R.I', 'logarmataromana' => 'Armata Romana', 'logsmurd' => 'S.M.U.R.D', 'logprimar' => 'Guvern', 'logtaxi' => 'Taxi', 'loginstructor' => 'School Instructor', 'loghitman' => 'Hitman Agency', 'logremorcari' => 'T.C.C', 'logsadoveanu' => 'Grove Street', 'logcorsicanu' => 'Stracci', 'logtobosaru' => 'Ballas', 'logcamataru' => 'Corleone', ); self::$vehColors = array( 'grey', '#CEB8F6', '#2A77A1', '#840410', '#263739', '#86446E', '#D78E10', '#4C75B7', '#BDBEC6', '#5E7072', '#46597A', '#656A79', '#5D7E8D', '#58595A', '#D6DAD6', '#9CA1A3', '#335F3F', '#730E1A', '#7B0A2A', '#9F9D94', '#3B4E78', '#732E3E', '#691E3B', '#96918C', '#515459', '#3F3E45', '#A5A9A7', '#635C5A', '#3D4A68', '#979592', '#421F21', '#5F272B', '#8494AB', '#767B7C', '#646464', '#5A5752', '#252527', '#2D3A35', '#93A396', '#6D7A88', '#221918', '#6F675F', '#7C1C2A', '#5F0A15', '#193826', '#5D1B20', '#9D9872', '#7A7560', '#989586', '#ADB0B0', '#848988', '#304F45', '#4D6268', '#162248', '#272F4B', '#7D6256', '#9EA4AB', '#9C8D71', '#6D1822', '#4E6881', '#9C9C98', '#917347', '#661C26', '#949D9F', '#A4A7A5', '#8E8C46', '#341A1E', '#6A7A8C', '#AAAD8E', '#AB988F', '#851F2E', '#6F8297', '#585853', '#9AA790', '#601A23', '#20202C', '#A4A096', '#AA9D84', '#78222B', '#0E316D', '#722A3F', '#7B715E', '#741D28', '#1E2E32', '#4D322F', '#7C1B44', '#2E5B20', '#395A83', '#6D2837', '#A7A28F', '#AFB1B1', '#364155', '#6D6C6E', '#0F6A89', '#204B6B', '#2B3E57', '#9B9F9D', '#6C8495', '#4D8495', '#AE9B7F', '#406C8F', '#1F253B', '#AB9276', '#134573', '#96816C', '#64686A', '#105082', '#A19983', '#385694', '#525661', '#7F6956', '#8C929A', '#596E87', '#473532', '#44624F', '#730A27', '#223457', '#640D1B', '#A3ADC6', '#695853', '#9B8B80', '#620B1C', '#5B5D5E', '#624428', '#731827', '#1B376D', '#EC6AAE', '#000000', '#177517', '#210606', '#125478', '#452A0D', '#571E1E', '#010701', '#25225A', '#2C89AA', '#8A4DBD', '#35963A', '#B7B7B7', '#464C8D', '#84888C', '#817867', '#817A26', '#6A506F', '#583E6F', '#8CB972', '#824F78', '#6D276A', '#1E1D13', '#1E1306', '#1F2518', '#2C4531', '#1E4C99', '#2E5F43', '#1E9948', '#1E9999', '#999976', '#7C8499', '#992E1E', '#2C1E08', '#142407', '#993E4D', '#1E4C99', '#198181', '#1A292A', '#16616F', '#1B6687', '#6C3F99', '#481A0E', '#7A7399', '#746D99', '#53387E', '#222407', '#3E190C', '#46210E', '#991E1E', '#8D4C8D', '#805B80', '#7B3E7E', '#3C1737', '#733517', '#781818', '#83341A', '#8E2F1C', '#7E3E53', '#7C6D7C', '#020C02', '#072407', '#163012', '#16301B', '#642B4F', '#368452', '#999590', '#818D96', '#99991E', '#7F994C', '#839292', '#788222', '#2B3C99', '#3A3A0B', '#8A794E', '#0E1F49', '#15371C', '#15273A', '#375775', '#060820', '#071326', '#20394B', '#2C5089', '#15426C', '#103250', '#241663', '#692015', '#8C8D94', '#516013', '#090F02', '#8C573A', '#52888E', '#995C52', '#99581E', '#993A63', '#998F4E', '#99311E', '#0D1842', '#521E1E', '#42420D', '#4C991E', '#082A1D', '#96821D', '#197F19', '#3B141F', '#745217', '#893F8D', '#7E1A6C', '#0B370B', '#27450D', '#071F24', '#784573', '#8A653A', '#732617', '#319490', '#56941D', '#59163D', '#1B8A2F', '#38160B', '#041804', '#355D8E', '#2E3F5B', '#561A28', '#4E0E27', '#706C67', '#3B3E42', '#2E2D33', '#7B7E7D', '#4A4442', '#28344E' ); self::$facColors = array( 0 => '#E8E8E8', 1 => '#2641FE', 2 => '#2641FE', 3 => '#1E519D', 4 => '#FF4800', 5 => '#8F8C47', 6 => '#FFFF00', 7 => '#33CCFF', 8 => '#AA3333', 9 => '#C2A2DA', 10 => '#F5DEB3', 11 => '#40863C', 12 => '#D900D9', 13 => '#FD7E00', 14 => '#B4BBCF', 15 => '#6A4444', 16 => '#45382A', 17 => '#E1F0E6', 18 => '#81A383' ); } public static function getData($table,$data,$id) { $q = Config::$g_con->prepare('SELECT `'.$data.'` FROM `'.$table.'` WHERE `id` = ?'); $q->execute(array($id)); $r_data = $q->fetch(); return $r_data[$data]; } public static function getID($table, $data, $name) { $q = Config::$g_con->prepare('SELECT `'.$data.'` FROM `'.$table.'` WHERE `name` = ?'); $q->execute(array($name)); $r_data = $q->fetch(); return $r_data[$data]; } } ?>
-
nu stie nimeni?
-
Nu se conecteaza panel-u am adaugat datele bine si EN: Something went wrong. If you are the administrator, check error_log.RO: Ceva nu a mers bine. Daca tu esti administratorul, verifica error_log. imi da eroare in error_log cu SQLSTATE[HY000] [1045] Access denied for user 'andreir1_samp'@'5.154.240.83' (using password: YES) SQLSTATE[HY000] [1045] Access denied for user 'andreir1_samp'@'5.154.240.83' (using password: YES) ala nu e ip-u care este in config.. nu stiu deunde preaia ip-u ala..
-
nu apar bizz-urile,casele si unele obiecte.. db l-am urcat bine si n-am umblat la gm
-
Ai ceva cu mine baiatu? Vezeti de treaba Te cunosc cumva si nu stiu eu, ce pula mea te bagi in seama?
-
Pentru ca in Romania nu va exista niciodata ceva 'unic' ;)
-
Rezolvat! T/C. Va rog.