Jump to content

1Shot

Membru
  • Posts

    69
  • Joined

  • Last visited

Posts posted by 1Shot

  1. 12 minutes ago, Banditul said:

    Daca e mysql r40+

    
    SQL = mysql_connect("localhost", "root", "", "baza");

    Daca pun asa cum ai spus, se deschide server-ul, dar imi apare: 

    [16:27:21] Server vehicles: 0
    [16:27:21] Safezones: 0
    [16:27:21] Houses: 0
    [16:27:21] Clans: 0
    [16:27:21] Clan zones: 0
    [16:27:21] Bussines: 0
    [16:27:21] Turfs: 0
    [16:27:21] Factions: 0
    [16:27:21] Jobs: 0
    [16:27:21] Furnitures: 0
    [16:27:21] Stuff Loaded
    [16:27:21] Safes: 0
    [16:27:21] Apartaments: 0
    [16:27:23] Accesory loaded: 0

    De ce apar toate 0 ? ...

     

  2. Just now, SherKan said:

    uita-te la functiile din mysql pe wiki eu folosesc asta + cele asemanatoare

    
    cache_get_value_int
    cache_get_value_float
    ...

     

    nu ma pricep prea bine la mysql...mai bine las versiunea asta de mysql care este pusa...dar nu stiu exact ce versiune e

  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. 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.

  5. 22 minutes ago, Banditul said:

    Din pacate din cate am incercat undeva la 4 ar fi numarul maxim de coloane dintr-un motiv sau altu. Si eu aveam nevoie sa afisez anumite elemente da nici o sansa. Revin cu edit dupa ce mai testez putin.

    Ok, ma anunti daca ai reusit ceva...

  6. 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;
    }

     

    sa-mp-001.png

    Multumesc!

  7. 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!

  8. 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;
        }

     

  9. On 12/7/2015 at 8:46 PM, ImpulsE said:

    UPDATE:

    • A fost adăugată partea a 2-a a tutorialului în care vă explic cum să creați o pagină de login, un profil și o pagină de logout standard pentru panel.
    • Nu am creat și pagină de înregistrare fiindcă aceasta diferă foarte mult depinzând de GM-ul serverului, dacă dorește cineva să îl ajut cu o pagină de login este rugat să lase un reply și am să îi fac o pagină de register potrivită pentru GM.

    Dacă aveți vreo nelămurire vă rog să îmi spuneți și o să vă explic, am pus la aproape fiecare linie din cod și explicație fiindcă după părerea mea așa pricepeți mai ușor.

    Salut, as avea eu nevoie sa ma ajuti cu o pagina de register potrivita pentru GM-ul meu. Ma poti contacta? ID skype: remusmihai99

  10. 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.