Jump to content

Blade

Membru
  • Posts

    24
  • Joined

  • Last visited

Posts posted by Blade

  1. Descriere produs: Contb-zone rpg2, level 51, 2165 ore jucate, aproape 2kk money, 1 infernus cu abea 30km, cont premium inca valabil timp de 3 luni. Mai multe detalii in imagine.
    Preţ: 15 euro
    Alte detalii:  Seriozitate maxima, nu dau primu (intermediar).Immagine.png

  2. NUME: Radu

    VÂRSTĂ: 18

    De ce vrei să te alături proiectului România-Reality?: Atunci, incepund de la faptul ca din anul 2014 de cand miam cumparat domeniul meu, am tot cautat un partener sa ma ajute sa infiintez o comunitate, am crezut ca vom avea succes.. Dar acest partener care mi sa alaturat nu o fost nimic altceva decat un "capsec", daduse administrator, fundator... pe bani si gratis la toti prieteni lui.. O comunitate nu poate da in fata asa. Si am auzit de tine ca cauti un partener, si din cate stiu tu esti foarte serios, eu nu spus ca o sa fiu partenerul perfect, avand in vedere ca eu nu te cunosc si tu nu ma cunosti. Asi vrea sa incerc si sa vedem pe parcursul timpului. Eu chiar vreau sa infiintez/am ceva serios si sa aiva succes. (rog sa ma scuzati pt. scrisul in Romana care nu este tocmai perfect, eu nu am facut scoala in Romania.)

    Eşti dispus să investeşti?: Da.

    Deţii cunoştinţe PHP / IPB / Photoshop?: Cunostinte php 60%, ipb cam 90% si photoshop 50%,

  3. Problema intalnita (descriere): Cond intru in game sa probez comanda nu functioneaza.
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu):

    // Aceasta este comanda

    if(strcmp(cmd, "/licenses", true) == 0)
        {
            if(gLogged[playerid] == 1)
            {
                ShowLicenses(playerid, playerid);
            }
            else
            {
                //
            }
            return 1;
        }

     

    // Acesta este executabilil

    forward ShowLicenses(playerid, targetid);
    public ShowLicenses(playerid, targetid)
    {
        new text[6][50];
        new string[128], string2[128];
        if(PlayerInfo[playerid][pLanguage] == 1)
        {
            if(PlayerInfo[targetid][pDriveLic] > 0)
            {
                text[0] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pDriveLicSusp] == 0)
                {
                    text[0] = "Suspended";
                }
                else
                {
                    text[0] = "Not passed";
                }
            }
            //-
            if(PlayerInfo[targetid][pFlyLic] > 0)
            {
                text[1] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pFlyLicSusp] == 0)
                {
                    text[1] = "Suspended";
                }
                else
                {
                    text[1] = "Not passed";
                }
            }
            //-
            if(PlayerInfo[targetid][pSailLic] > 0)
            {
                text[2] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pSailLicSusp] == 0)
                {
                    text[2] = "Suspended";
                }
                else
                {
                    text[2] = "Not passed";
                }
            }
            //-
            if(PlayerInfo[targetid][pFishLic] > 0)
            {
                text[3] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pFishLicSusp] == 0)
                {
                    text[3] = "Suspended";
                }
                else
                {
                    text[3] = "Not passed";
                }
            }
            //-
            if(PlayerInfo[targetid][pWeapLic] > 0)
            {
                text[4] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pWeapLicSusp] == 0)
                {
                    text[4] = "Suspended";
                }
                else
                {
                    text[4] = "Not passed";
                }
            }
            //-
            if(PlayerInfo[targetid][pMatLic] > 0)
            {
                text[5] = "Passed";
            }
            else
            {
                if(PlayerInfo[targetid][pMatLicSusp] == 0)
                {
                    text[5] = "Suspended";
                }
                else
                {
                    text[5] = "Not passed";
                }
            }
            //-
            format(string, sizeof(string),"%s's licenses", GetName(playerid));
            format(string, sizeof(string),"** Driving License: %s\n**Flying License: %s\nSailing License: %s\nFishing License: %s\nWeapons License: %s\nMaterials License: %s", text[0], text[1], text[2], text[3], text[4], text[5]);
            ShowPlayerDialog(playerid, DIALOG_LICENSES, DIALOG_STYLE_MSGBOX, string, string2, "Ok", "");
        }
        else
        {
            if(PlayerInfo[targetid][pDriveLic] > 0)
            {
                text[0] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pDriveLicSusp] == 0)
                {
                    text[0] = "Suspendata";
                }
                else
                {
                    text[0] = "Expirata";
                }
            }
            //-
            if(PlayerInfo[targetid][pFlyLic] > 0)
            {
                text[1] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pFlyLicSusp] == 0)
                {
                    text[1] = "Suspendata";
                }
                else
                {
                    text[1] = "Expirata";
                }
            }
            //-
            if(PlayerInfo[targetid][pSailLic] > 0)
            {
                text[2] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pSailLicSusp] == 0)
                {
                    text[2] = "Suspendata";
                }
                else
                {
                    text[2] = "Expirata";
                }
            }
            //-
            if(PlayerInfo[targetid][pFishLic] > 0)
            {
                text[3] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pFishLicSusp] == 0)
                {
                    text[3] = "Suspendata";
                }
                else
                {
                    text[3] = "Expirata";
                }
            }
            //-
            if(PlayerInfo[targetid][pWeapLic] > 0)
            {
                text[4] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pWeapLicSusp] == 0)
                {
                    text[4] = "Suspendata";
                }
                else
                {
                    text[4] = "Expirata";
                }
            }
            //-
            if(PlayerInfo[targetid][pMatLic] > 0)
            {
                text[5] = "Valida";
            }
            else
            {
                if(PlayerInfo[targetid][pMatLicSusp] == 0)
                {
                    text[5] = "Suspendata";
                }
                else
                {
                    text[5] = "Expirata";
                }
            }
            //-
            format(string, sizeof(string),"Licentele lui %s", GetName(playerid));
            format(string, sizeof(string),"** Carnet de sofer: %s\n**licenta de pilot: %s\nLicenta de navigatie: %s\nLicenta de pescar: %s\nPermis de port-arma: %s\nLicenta de materiale: %s", text[0], text[1], text[2], text[3], text[4], text[5]);
            ShowPlayerDialog(playerid, DIALOG_LICENSES, DIALOG_STYLE_MSGBOX, string, string2, "Ok", "");
        }
        return 1;
    }

    Imagini / Video (optional):-
    Ati incercat sa rezolvati singur?:Da.. nu inteleg care este problema.

  4. Eu am creat 2 comenzi cu aceasi chestie, pe una merge este comanda prin tasta "c" si am copiat aceasi chestie si am puso pe tasta h doar numai ca am schimabat ceva.. pe tasta c mergea numai pe jos... pe tasta h vreau sa mearga in masina.. si am facuto sa mearga in masina dar nu merge.

  5. Problema intalnita (descriere):Am pus acest key la OnPlayerKeyStateChange si cand intru in game nu merge.
    Ero(area / rile) / warning-(ul / urile):-
    Liniile de cod / sursa / script-ul(obligatoriu):

    if(newkeys & KEY_CTRL_BACK)
        {
              if(IsPlayerInAnyVehicle(playerid))
            {
                if(PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 3||PlayerInfo[playerid][pMember] == 3)
                {
                    if(PlayerInfo[playerid][pLeader] == 1||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 3||PlayerInfo[playerid][pMember] == 3)
                    {
                        if(IsPlayerInRangeOfPoint(playerid, 10.0, 1544.3184,-1627.2258,13.3828))// LSPD Barrier
                          {
                              SetObjectRot(lspdbarrier, 0, 0, 90);
                              SetTimer("CloseLSPDBarrier", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, 1588.5728,-1637.2875,13.4247))// LSPD Gate
                          {
                            MoveObject(lspdgate, 1598.30664, -1638.21655, 13.70000, 2.00);
                            SetTimer("CloseLSPDGate", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, 2237.8091,2453.9219,10.7983))// LVPD Barrier
                          {
                            SetObjectRot(lvpdbarrier, 0, 0, 90);
                            SetTimer("CloseLVPDBarrier", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, 2293.3022,2498.5542,3.4150))// LVPD Gate 1
                          {
                            MoveObject(lvpdgate, 2294.12476, 2508.53979, 4.72560, 2.00);
                            SetTimer("CloseLVPDGate", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, 2335.5901,2443.3381,5.8920))// LVPD Gate 2
                          {
                            MoveObject(lvpdgate2, 2335.02637, 2443.80786, 12.57870, 2.00);
                            SetTimer("CloseLVPDGate2", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, -1701.8588,684.2625,24.8906))// SFPD Barier 1
                          {
                            SetObjectRot(sfpdbarrier, 0, 0, 90);
                            SetTimer("CloseSFPDBarrier", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, -1571.8022,661.7778,7.1875))// SFPD Barier 2
                          {
                            SetObjectRot(sfpdbarrier2, 0, 0, 90);
                            SetTimer("CloseSFPDBarrier2", 4000, false);
                          }
                          //-
                          if(IsPlayerInRangeOfPoint(playerid, 10.0, -1631.9698,687.7368,7.1875))// SFPD Gate
                          {
                            MoveObject(sfpdgate, -1645.80627, 688.68842, 8.55370, 2.00);
                            SetTimer("CloseSFPDGate", 4000, false);
                          }
                    }
                }
            }
             else
             {
                //
            }
        }

    Imagini / Video (optional):-
    Ati incercat sa rezolvati singur?:
     Desigur

  6. Conexiunea la baza de date este buna.. eu am facut un script la onplayerconenct casa selecteze din bans si dupaia sa selecteze din players

     

    va las scriptul:

    public OnPlayerConnect(playerid)
    {
        gLogged[playerid] = 0;
    	//
        new pName[MAX_PLAYERS];
    	new qstr[612];
    	new string[128];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(qstr,sizeof(qstr), "SELECT * FROM bans WHERE `Nick` = '%s'", pName);
    	mysql_query(sqldb, qstr);
    	mysql_store_result();
    	if(mysql_num_rows())
    	{
    		SendClientMessage(playerid, COLOR_SAMP,"You are banned from this server!");
            format(string, sizeof(string), "Post an unban request on http://%s", website_forum);
            SendClientMessage(playerid, COLOR_SAMP, string);
    		SetTimerEx("KickTimer", 500, false, "d", playerid);
    	}
    	else
    	{
    		LogRegCheck(playerid);
    	}
    	mysql_free_result();
    	//
    	TogglePlayerSpectating(playerid, 1);
    	return 1;
    }
    
    forward LogRegCheck(playerid);
    public LogRegCheck(playerid)
    {
        new pName[MAX_PLAYERS];
    	new qstr[612];
    	new string[128];
    	new result[456];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(qstr,sizeof(qstr), "SELECT * FROM players WHERE `Nick` = '%s'", pName);
    	mysql_query(sqldb, qstr);
    	mysql_store_result();
    	if(mysql_num_rows())
    	{
    	    if(mysql_retrieve_row())
          	{
          	    mysql_fetch_field_row(result, "Registered"); PlayerInfo[playerid][pRegistered] = strval(result);
    			mysql_fetch_field_row(result, "LastLogin"); PlayerInfo[playerid][pLastLogin] = strval(result);
          	}
          	//
          	if(PlayerInfo[playerid][pRegistered] == 1)
    		{
    	        format(string,sizeof(string),"{BECBFC}Welcome back, {95A3FF}%s{BECBFC}!nnPlease enter your password below to login to your account.nn{FFFFFF}* Last login: %s *",pName, PlayerInfo[playerid][pLastLogin]);
    			ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Login",string,"Login","Quit");
    			InterpolateCameraPos(playerid, 795.448364, -1035.059692, 63.971153, 1488.203491, -1731.146484, 72.215118, 30000);
    			InterpolateCameraLookAt(playerid, 791.667602, -1038.115844, 62.802383, 1490.974975, -1727.566528, 70.093200, 20000);
    			PlayAudioStreamForPlayer(playerid, "http://playzed.ro/music/intro.mp3");
    			logintimer = SetTimer("LoginTimer", 30000, false);
    		}
    		else
    		{
    			format(string,sizeof(string),"{BECBFC}Welcome {95A3FF}%s{BECBFC}!nnPlease enter your password below to login to your account.",pName);
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Account Registration",string,"Register","Quit");
    		}
    	}
    	else
    	{
    		format(string,sizeof(string),"{BECBFC}Welcome to the server, {95A3FF}%s{BECBFC}!nnPlease register an account by entering your desired password below.",pName);
            ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Account Registration",string,"Register","Quit");
    	}
    	mysql_free_result();
    	return 1;
    }
    
    forward OnPlayerRegister(playerid, password[]);
    public OnPlayerRegister(playerid, password[])
    {
        new pName[MAX_PLAYERS];
    	new qstr[200];
    	new string[128];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(qstr,sizeof(qstr),"INSERT INTO `players` (`Nick`,`password`) VALUES ('%s',MD5('%s'))", pName, password);
    	mysql_query(sqldb, qstr);
    	//
        format(string, sizeof(string), "Please enter your password below to login to your account.");
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", string, "Login", "Exit");
    	return 1;
    }
    
    forward OnPlayerLogin(playerid, password[]);
    public OnPlayerLogin(playerid, password[])
    {
        new pName[MAX_PLAYERS];
    	new qstr[256];
    	new result[456];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	format(qstr,sizeof(qstr), "SELECT * FROM players WHERE `Nick` = '%s' AND `Password` = MD5('%s')", pName, password);
    	mysql_query(sqldb, qstr);
    	mysql_store_result();
    	if(mysql_num_rows())
    	{
    	    if(mysql_retrieve_row())
          	{
    			mysql_fetch_field_row(result, "ID"); PlayerInfo[playerid][pID] = strval(result);
    			mysql_fetch_field_row(result, "Nick"); format(PlayerInfo[playerid][pNick], MAX_PLAYERS, result);
    			mysql_fetch_field_row(result, "Password"); format(PlayerInfo[playerid][pPassword], 32, result);
    			mysql_fetch_field_row(result, "AdminLevel"); PlayerInfo[playerid][pAdmin] = strval(result);
    			mysql_fetch_field_row(result, "HelperLevel"); PlayerInfo[playerid][pHelper] = strval(result);
    			mysql_fetch_field_row(result, "PremiumAccount"); PlayerInfo[playerid][pPremiumAccount] = strval(result);
    			//mysql_fetch_field_row(result, "Registered"); PlayerInfo[playerid][pRegistered] = strval(result);
    			mysql_fetch_field_row(result, "Tutorial"); PlayerInfo[playerid][pTutorial] = strval(result);
    			mysql_fetch_field_row(result, "RegisterDate"); PlayerInfo[playerid][pRegistered] = strval(result);
    			//mysql_fetch_field_row(result, "LastLogin"); PlayerInfo[playerid][pLastLogin] = strval(result);
    			mysql_fetch_field_row(result, "IP"); PlayerInfo[playerid][pIP] = strval(result);
    			
    			WhenPlayerLoggedIn(playerid);
    		}
    	}
    	else
    	{
    		ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Account Login", "Password doesn't match your name!nPlease reenter your password below to login your account.", "Login", "Quit");
    	}
    	mysql_free_result();
    	return 1;
    }
    
    forward WhenPlayerLoggedIn(playerid);
    public WhenPlayerLoggedIn(playerid)
    {
        new pName[MAX_PLAYERS];
    	GetPlayerName(playerid, pName, sizeof(pName));
    	
        if(PlayerInfo[playerid][pRegistered] == 0)
    	{
    	
    	}
    	
    	KillTimer(logintimer);
    	printf("%s has logged in.", pName);
    	gLogged[playerid] = 1;
    	return 1;
    }
    
  7. Problema intalnita (descriere): Am facut un gamemode cu un system de logare, dar cand il pornesc nu vrea sa plece..
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): am incerca sa sterg linia din conectarea mysql din gamemode si dupia o plecat
    Imagini / Video (optional): linia conectare mysql 

     

    public OnGameModeInit()

    {
        MySQLConnect();
        return 1;
    }
     
    forward MySQLConnect();
    public MySQLConnect()
     {
        sqldb = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_BASE, MYSQL_PASS);
        if(sqldb && mysql_errno(sqldb) == 0)
        {
            printf("[MYSQL]: Connection to database (%s) was established!", MYSQL_BASE);
        }
        else
        {
            printf("[MYSQL]: Connection to database (%s) failed!", MYSQL_BASE);
            SendRconCommand("exit");
        }
        return 1;
    }

    Am incarcat sa rezolv dar nu am reusit

  8. Problema intalnita (descriere): Nu incarca datele adica nustiu.. dar cand le folosesc nu spune datele corecte din mysql
    Ero(area / rile) / warning-(ul / urile): Nu incarca bine datele

    Liniile de cod / sursa / script-ul(obligatoriu):

     

    forward WhenPlayerLogin(playerid);
    public WhenPlayerLogin(playerid)
    {
    new query[128];
    new string[128];
        new rows, fields;
    cache_get_data(rows, fields);
    if(rows)
    {
       //cache_get_field_content(0, "ID", temp); PlayerInfo[playerid][pID] = strval(temp);
       //cache_get_field_content(0, "Nick", temp); PlayerInfo[playerid][pNick] = strval(temp);
       //cache_get_field_content(0, "password", temp),  format(PlayerInfo[playerid][pPassword], 32, temp);
       cache_get_field_content(0, "AdminLevel", temp); PlayerInfo[playerid][pAdmin] = strval(temp);
       cache_get_field_content(0, "HelperLevel", temp); PlayerInfo[playerid][pHelper] = strval(temp);
       cache_get_field_content(0, "PremiumAccount", temp); PlayerInfo[playerid][pPremiumAccount] = strval(temp);
       cache_get_field_content(0, "Registered", temp); PlayerInfo[playerid][pRegistered] = strval(temp);
       cache_get_field_content(0, "Tutorial", temp); PlayerInfo[playerid][pTutorial] = strval(temp);
       cache_get_field_content(0, "Language", temp); PlayerInfo[playerid][pLanguage] = strval(temp);
       cache_get_field_content(0, "Email", temp),  format(PlayerInfo[playerid][pEmail], 255, temp);
       cache_get_field_content(0, "Referral", temp); PlayerInfo[playerid][pReferral] = strval(temp);
       cache_get_field_content(0, "Sex", temp); PlayerInfo[playerid][pSex] = strval(temp);
       cache_get_field_content(0, "Skin", temp); PlayerInfo[playerid][pSkin] = strval(temp);
       cache_get_field_content(0, "RegisterDate", temp); PlayerInfo[playerid][pRegisterDate] = strval(temp);
       cache_get_field_content(0, "LastLogin", temp); PlayerInfo[playerid][pLastLogin] = strval(temp);
       cache_get_field_content(0, "IP", temp); PlayerInfo[playerid][pIP] = strval(temp);
       
       new Year, Month, Day, Hour, Minute, Second;
       getdate(Year, Month, Day);
       gettime(Hour, Minute, Second);
       
       if(PlayerInfo[playerid][pRegistered] == 0)
    {
       format(string,sizeof(string), "%02d.%02d.%02d %02d:%02d", Day, Month, Year, Hour, Minute);
    strmid(PlayerInfo[playerid][pRegisterDate], string, 0, strlen(string), 255);
    Update(playerid, pRegisterDatex);
     
       PlayerInfo[playerid][pRegistered] = 1;
       Update(playerid, pRegisteredx);
    }
     
    format(string,sizeof(string), "%02d.%02d.%02d %02d:%02d", Day, Month, Year, Hour, Minute);
    strmid(PlayerInfo[playerid][pLastLogin], string, 0, strlen(string), 255);
    Update(playerid, pLastLoginx);
     
    strmid(PlayerInfo[playerid][pIP], GetIP(playerid), 0, 100, 255);
    Update(playerid, pIPx);
     
    mysql_format(sqldb, query, sizeof(query) ,"INSERT INTO `playerlogs` (`ID`,`Nick`,`Time`,`IP`,`Type`) VALUES ('','%e','%02d.%02d.%02d %02d:%02d','%e','1')", GetName(playerid), Day, Month, Year, Hour, Minute, GetIP(playerid));
            mysql_query(sqldb, query);
     
    if (PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(string, sizeof(string), "SERVER: You're logged in as a level %d admin.", PlayerInfo[playerid][pAdmin]);
            SendClientMessage(playerid, COLOR_WHITE, string);
    }
     
    if (PlayerInfo[playerid][pHelper] >= 1)
    {
    format(string, sizeof(string), "SERVER: You're logged in as a level %d helper.", PlayerInfo[playerid][pHelper]);
    SendClientMessage(playerid, COLOR_WHITE, string);
    }
     
    if (PlayerInfo[playerid][pPremiumAccount] >= 1)
    {
    SendClientMessage(playerid, COLOR_WHITE,"SERVER: You are a Premium Account user.");
    }
     
    StopAudioStreamForPlayer(playerid);
    TogglePlayerSpectating(playerid, 0);
     
            SetSpawnInfo(playerid, PlayerInfo[playerid][pSkin], 0, 1642.3352, -2240.9292, 13.4945, 180.0000, 0, 0, 0, 0, 0, 0);
    SpawnPlayer(playerid);
     
    KillTimer(logintimer);
    printf("[iNFO]: %s has logged in !", GetName(playerid));
    gLogged[playerid] = 1;
    }
    else
    {
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Account Login", "Password doesn't match your name!nPlease reenter your password below to login your account.", "Login", "Quit");
    }
    return 1;
    }

    Imagini / Video (optional):-
    Ati incercat sa rezolvati singur?:Da, am bagat o linie da la incarcare date.

  9. Problema intalnita (descriere): O mica problema in script, problema este la a 3-a linie din quote..
    Ero(area / rile) / warning-(ul / urile):

     

    C:UsersRaduDesktopSAMP-ServergamemodesRO-RP.pwn(6292) : error 033: array must be indexed (variable "wpasshash")

    C:UsersRaduDesktopSAMP-ServergamemodesRO-RP.pwn(6331) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
     

    Liniile de cod / sursa / script-ul:

     

    new wpasshash[129];

    WP_Hash(wpasshash, sizeof (wpasshash), inputtext);
    if(PlayerInfo[playerid][pPassword] == wpasshash)
    {
                            ShowPlayerDialog(playerid, DIALOG_CHANGEPASS2, DIALOG_STYLE_PASSWORD, "Change Password (step 2)", "Enter below your new password:nnScrie mai jos o noua parola:", "Ok", "Cancel");
    }

    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Dap.

  10. Cand folosesc comanda in game imi spune ca nu cunoaste comanda...

     

     

    if(strcmp(cmdtext, "/charity", true) == 0)

        {
        if(IsPlayerConnected(playerid))
       {
           if(gLogged[playerid] == 1)
           {
               temp = strtok(cmdtext, idx);
    if(!strlen(temp))
    {
    SendClientMessage(playerid, COLOR_SYNTHAX, "Synthax: /charity <Amount of Money>");
    return 1;
    }
    new money;
    money = strval(temp);
    if(money < 0)
    {
    SendClientMessage(playerid, COLOR_ERROR, "You can't sent less than 1$.");
    return 1;
    }
    money = strval(temp);
    if(GetPlayerMoney(playerid) < money)
    {
       SendClientMessage(playerid, COLOR_ERROR, "You don't have that amount of money.");
    return 1;
    }
    GivePlayerMoney(playerid, -money);
    Update(playerid, pCashu);
    format(string, sizeof(string), "You sent %d for players level 2-7.", FormatNumber(money));
    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    CharityMoney += money;
    //
    new query[128];
    format(query,128,"UPDATE `charity` SET `CharityMoney`='%d' WHERE `ID`='1'",CharityMoney);
    mysql_query(sqldb,query);
           }
           else
           {
    //
    }
    }
    return 1;
    }

     

  11. Salutare baieti eu am o proeblema eu am pus un sistem de salvare a logurilor cand un jucator forloseste /rcon login {parola}, da imi face spam in baza de date! Oare de la ce sa fie va la stringul meu!

     

     

     

    String:

     

    public OnRconLoginAttempt(ip[], password[], success)
    {
        if(!success) //If the password was incorrect
        {
            printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
            new pip[16];
            for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
            {
                GetPlayerIp(i, pip, sizeof(pip));
                if(!strcmp(ip, pip, true)) //If a player's IP is the IP that failed the login
                {
                    //SendClientMessage(i, 0xFFFFFFFF, "Wrong Password. Bye!"); //Send a message
                    //Ban(i); //They are now banned.
                }
            }
        }
        else
        {
            for(new i=0; i<MAX_PLAYERS; i++)
            {
                new pName[30];
                new query[512];
            
       GetPlayerName(i, pName, sizeof(pName));
     
    mysql_format(sqldb, query, sizeof(query) ,"INSERT INTO `rconlogs` (`ID`,`Admin`,`Password`, `Time`, `IP`) VALUES ('','%e','%s',CURRENT_TIMESTAMP,'%e')", pName, password, ip);
    mysql_query(sqldb, query);
    }
        }
    return 1;
    }
     
     
    Uitati ce spam imi face in baza de date: 4X9Bu80.png
  12. Pai si cum so fac? Nu am idee cum se face? nu stiu cum sa fac acel timer.. Ma poate ajuta cineva? imi poate face cineva un timer? Chiar am envoie de aceasta chestie..


    Pai si cum so fac? Nu am idee cum se face? nu stiu cum sa fac acel timer.. Ma poate ajuta cineva? imi poate face cineva un timer? Chiar am envoie de aceasta chestie..

  13. Problema intalnita (descriere): Salutare baieti, vreau sa stiu daca se poate face ceva, adica daca eu dau ban unui player din panel, se poata trimit un mesaj tuturor jucatorilor online precum adminul "cutare" la banat pe jucatorul "cutare".. Se poate face?
    Ero(area / rile) / warning-(ul / urile): /
    Liniile de cod / sursa / script-ul: /
    Imagini / Video (optional): /
    Ati incercat sa rezolvati singur?: Nu , vreau sa stiu daca se poate face asa ceva.

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