Jump to content

1Shot

Membru
  • Posts

    69
  • Joined

  • Last visited

Everything posted by 1Shot

  1. nu ma pricep prea bine la mysql...mai bine las versiunea asta de mysql care este pusa...dar nu stiu exact ce versiune e
  2. daca pun r41 imi da multe erori... iar mysql acesta pe care il am acum nu stiu exact ce versiune este...cum pot vedea?
  3. Defapt am gresit eu, aveam o versiune mai veche, am pus acum ultima versiune si imi apar erori cand compilez......... C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(6998) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(6999) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7000) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7001) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7002) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7003) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7017) : warning 213: tag mismatch C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7019) : warning 202: number of arguments does not match definition C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7020) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7021) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7022) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7023) : error 017: undefined symbol "cache_get_field_content" C:\Users\Remus\Desktop\GM\gamemodes\OneShot.pwn(7024) : error 017: undefined symbol "cache_get_field_content"
  4. Da, sunt aceleasi tocmai ce le-am downloadat (toate cele 5 plugin-uri) ultimele versiuni , si le-am pus si in plugins si in pawno/include si am si compilat gm-ul...
  5. Dap, este fix linia SQL = mysql_connect("localhost", "root", "baza", "");
  6. Salut. cand incerc pornesc server-ul se inchide si imi da niste erori pe care nu stiu cum sa le rezolv... Am incercat sa schimb plugin-urile dar degeaba... Acestea sunt erorile din server_log: [16:01:02] [debug] Server crashed while executing GM.amx [16:01:02] [debug] AMX backtrace: [16:01:02] [debug] #0 native mysql_connect () [72f1e4d0] from mysql.DLL [16:01:02] [debug] #1 000c0c08 in ?? () at C:\Users\Remus\Desktop\GM\gamemodes\GM.pwn:1524 [16:01:02] [debug] #2 0002f144 in public L_AFK_OnGM () at C:\Users\Remus\Desktop\GM\pawno\include\YSI\y_hooks/impl.inc:484 [16:01:02] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe [16:01:02] [debug] #4 0001bcc4 in public SSCANF_OnGameModeInit () at C:\Users\Remus\Desktop\GM\pawno\include\AutoAFK.inc:47 [16:01:02] [debug] #5 000153b0 in public Itter_OnGameModeInit () at C:\Users\Remus\Desktop\GM\pawno\include\sscanf2.inc:205 [16:01:02] [debug] #6 native CallLocalFunction () [004743b0] from samp-server.exe [16:01:02] [debug] #7 000140e8 in public ScriptInit_OnGameModeInit () at C:\Users\Remus\Desktop\GM\pawno\include\YSI\y_iterate.inc:791 [16:01:02] [debug] #8 00012d08 in public PZone_OnGameModeInit () at C:\Users\Remus\Desktop\GM\pawno\include\YSI\internal\..\y_scriptinit.inc:171 [16:01:02] [debug] #9 native CallLocalFunction () [004743b0] from samp-server.exe [16:01:02] [debug] #10 00006ce8 in public OnGameModeInit () at C:\Users\Remus\Desktop\GM\pawno\include\playerzone.inc:429 multumesc.
  7. Ok, ma anunti daca ai reusit ceva...
  8. Am o problema la comanda /members. Ar trebuii sa apara Numele/Rank-ul/OnlineOffline/FW/Zile factiune/ultima logare, dar imi apar doar primele 4. Zilele in factiune si ultima logare nu apar...nu stiu ce ar putea fi gresit... Las aici cod-ul comenzii si o poza cu comanda /members din joc: CMD:members(playerid, params[]) { if(PlayerInfo[playerid][pMember] >= 1 && PlayerInfo[playerid][pRank] >= 6) { new aim[2400], head[64], query[300], test[300], test1[4], test2[4], test3[10], test4[50], result[300]; format(query, sizeof(query), "SELECT * FROM `users` WHERE `users`.`Member` = '%d' ORDER BY `users`.`Rank` DESC LIMIT 50", PlayerInfo[playerid][pMember]); new Cache: membresult = mysql_query(SQL, query); format(head, sizeof(head), "Nume\tRank\tStatus\tFW\tDays\tLast Online\n"); for(new i, j = cache_get_row_count(); i != j; ++i) { cache_get_field_content(i, "name", result); format(test, 24, result); cache_get_field_content(i, "Rank", result); format(test1, 4, result); cache_get_field_content(i, "FWarn", result); format(test2, 4, result); cache_get_field_content(i, "FactionTime", result); format(test3, 10, result); cache_get_field_content(i, "lastOn", result); format(test4, 50, result); new id = GetIDClan( test ); if( id != INVALID_PLAYER_ID ) format(aim, sizeof(aim), "%s\t%s\tOnline\t%s\t%s\t%s\n", test, test1, test2, test3, test4 ); else format(aim, sizeof(aim), "%s\t%s\tOffline\t%s\t%s\t%s\n", test, test1, test2, test3, test4 ); } strins(aim, head, 0); cache_delete(membresult); ShowPlayerDialog(playerid,DIALOG_MEMBERS,DIALOG_STYLE_TABLIST_HEADERS,"Members",aim,"Exit",""); } return 1; } Multumesc!
  9. Salut. Vreau sa pun cand intri pe server si trebuie sa te loghezi sa iti apara: * Last Login: data/ora *. Problema este ca nu imi apare... apare asa: * Last Login: * Adica pur si simplu data si ora nu apar... Nu stiu ce as fi putut face gresit, mie m-i se pare ca e totul ok... Va las mai jos scriptul: La OnPlayerDisconnect: // LAST LOGIN new y,m,d,h,mi; getdate(y,m,d); gettime(h,mi); new str[184]; mysql_format(SQL,str,sizeof(str), "UPDATE users SET `lastOn`='%02d.%02d.%d - %02d:%02d' WHERE `name`='%s'",d,m,y,h,mi,PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); La OnPlayerRequestClass: if (gPlayerAccount[playerid] != 0) { new LastLog[64], loginstring[128]; cache_get_field_content(playerid, "lastOn", LastLog); format(loginstring,sizeof(loginstring), "Welcome to Server, %s!\nPlease enter your password below.\n\n{FFFFFF}* Last Login: %s *", Player, LastLog); ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"Account Login",loginstring,"Login","Quit"); } In Baza de Date (La `users`): `lastOn` varchar(50) NOT NULL DEFAULT '01/01/1970 01:01:01', Multumesc!
  10. Am rezolvat. Mersi oricum.
  11. ShowPlayerDialog(playerid, DIALOG_CARBUY, DIALOG_STYLE_LIST, "{357AB7}Dealership", "1. Cheap Vehicles\n2. Regular Vehicles\n3. Expensive Vehicles\n4. Premium Vehicles", "Select", "Close");
  12. Salut, am o problema cu Dialog Box-ul. Am un dialog la DealerShip, in care daca apesi "Select" (prima optiune) iti cumpara masina respectiva, iar daca apesi "Close" (a doua optiune) ar trebui sa iti inchida dialog-ul, sa te teleporteze in fata la dealership, sa iti mute camera inapoi pe tine, etc. In schimb, mie doar imi inchide dialog-ul, dar nu ma teleporteaza inapoi in fata la dealership si nu imi repozitioneaza camera pe mine... In schimb, daca apas tasta ESC, totul merge perfect, dar daca apas Close pe dialog doar imi inchide dialog-ul si atat...ma lasa cu camera pe dealership, cu virtual world 60, etc. Sper ca ma puteti ajuta! Multumesc! Acesta este scriptul: if(dialogid == DIALOG_CARBUY) { if(!response) { SetPlayerPos(playerid, 2131.7500, -1150.4370, 24.1570); TogglePlayerControllable(playerid, 1); SetCameraBehindPlayer(playerid); SetPlayerVirtualWorld(playerid, 0); } else if(response) { new stringz[3000], stringy[3000], stringx[3000]; if(listitem == 0) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] > 0 && Stock[xf][vPrice] <= 7000000) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY2, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } if(listitem == 1) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] > 7000000 && Stock[xf][vPrice] <= 19999999) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY3, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } if(listitem == 2) { for(new xf = 0; xf < MAX_PERSONAL_CARS; xf++) { if(Stock[xf][vPrice] >= 20000000 && Stock[xf][vPrice] < 50000000) { format(stringy, sizeof(stringy), "{FFFFFF}%s\t{FFFFFF}$%d\t{FFFFFF}%d\n", Stock[xf][vName], Stock[xf][vPrice], Stock[xf][vStock]); strcat(stringz, stringy); } } format(stringx, sizeof(stringx), "Vehicle\tPrice\tStock\n"); strins(stringz, stringx, 0); ShowPlayerDialog(playerid, DIALOG_CARBUY4, DIALOG_STYLE_TABLIST_HEADERS, "{357AB7}Freakz: {FFFFFF}Dealership", stringz, "Select", "Close"); } } return 1; }
  13. Salut, as avea eu nevoie sa ma ajuti cu o pagina de register potrivita pentru GM-ul meu. Ma poti contacta? ID skype: remusmihai99
  14. 1Shot

    Problema Link

    Salut, am si eu o intrebare, este posibil sa bag un link in joc (spre exemplu, intr-o comanda), iar dupa ce ai folosit acea comanda sa te redirectioneze direct in browser (chrome,mozzila,etc.) pe link-ul respectiv. Este posibil cumva acest lucru? Multumesc.
×
×
  • 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.