Jump to content

MaFioTTul

Membru
  • Posts

    24
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by MaFioTTul

  1. Salut, cand incerc sa acceseaza adresa panelului pe local host primesc urmatoarea eroare: https://imgur.com/a/SN7K6

    Acesta este sursa (server mysql ) 

    <?php
    
    $link = mysql_connect('localhost', 'zp_hid10925', '') or die("");
    mysql_select_db('zp_hid10925', $link);
    
    ?>

    M-am gandit sa pun si config.php :

    <?php
    session_start();
    include 'server-sql.php';
    include 'functions.php';
    
    $logged_in = 0;
    if(isset($_SESSION['username']) && isset($_SESSION['password'])){
    	$username = sec($_SESSION['username']);
    	$password = sec($_SESSION['password']);
    	
    	$udata = get_row("SELECT * FROM users WHERE name='$username' && Password='$password'");
    	if(isset($udata['id'])){
    	    $logged_in = 1;
    		if(isset($_GET['logout'])){
    			unset($_SESSION['username']);
    			unset($_SESSION['password']);
                mysql_query("UPDATE users SET rpgon=0 WHERE name='$username'"); 
    			header('location: index');
    		}
    	}
    }
    function redirect_not_logged()
    {
        $username = sec($_SESSION['username']);
        $password = sec($_SESSION['password']);
    	
        $udata = get_row("SELECT * FROM users WHERE name='$username' && password='$password'");
        $id = $udata['id'];
        $q = mysql_query("SELECT * FROM `users` WHERE id = $id");
    	while($row = mysql_fetch_array($q))
    	{
    	     $rpg = $row['rpgon'];
    	}
    	if($rpg == 0) { echo "Not logged in."; header('location: login.php');}
    	
    }
    
    // vars
    $member_types = array(
    	'Civil',
    	'Police Departament',
    	'F.B.I',
    	'Armata Română',
    	'Los Aztecas',
    	'Grove Street',
    	'Los Santos Vagos',
    	'Staff',
    	'Tow Car Company',
    	'News Reporter',
    	'Ballas Family',
    	'Hitman Agency',
    	'School Instructors',
    	'Taxi Cab Company',
    	'Paramedics Departament',
    
    );
    $shop_types = array(0,
    	'Bullet',
    	'Cheetah',
    	'FCR-900',
    	'Clear 10FP',
    	'Golden Account',
    	'Infernus',
    	'Change Nick',
    	'Turismo',
    	'Clear 1 Warn',
    );
    $rank = array(
    
    	'Civil',
    	'Rank 1',
    	'Rank 2',
    	'Rank 3',
    	'Rank 4',
    	'Rank 5',
    	'Rank 6',
    	'Leader'
    );
    
    $account_types = array(
    	'No',
    	'Yes' 
    );
    
    $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'
    		);
    
    $status_types = array(
    	'<font color="#FF0000">Offline</font>',
    	'<font color="#0DFF00">Online</font>',
    	'<font color="#FEC300">AFK</font>'
    );
    
    $status1_types = array(
    	'<font color="#FF0000">&#8226</font>',
    	'<font color="#0DFF00">&#8226</font>',
    	'<font color="#0DFF00">&#8226</font>'
    );
    $ban_type = array(0, 'Nume', 'IP');
    $admins56 = array(0, 'Trial Admin', 'Junior Admin', 'General Admin', 'Head Admin', 'Lead Admin', 'Manager', 'Scripter', 'Owner');
    $helpers56 = array(0, 'Trial Helper', 'Helper', 'Lead Helper');
    
    ?>

     

  2. Salut, cand compilez Gamemode-ul primesc erorile loose indentation, m-am uitat foarte bine pe ele dar nu stiu ce este gresit. 

     

    Poze : http://imgur.com/hGdTEsu

               http://imgur.com/u2G0zae

               http://imgur.com/UzSUt51

     

    Cod:  

     public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

    {
        for(new i; i < sizeof(antisqlinjection); i++)
        {
    if(strfind(inputtext, antisqlinjection, true) != -1)
    {
    SCM(playerid, -1, "Nu sunt permise asemenea caractere.");
    return 1;
        }
    }
     
    new vehicleid = GetPlayerVehicleID(playerid); // AICI E EROAREA
    new sendername[25];
    new string[1024];
     
     
     
     
     if( dialogid == DIALOG_TW ) /// AICI E ERAORE
     
     
    .....
     
     
    if(dialogid == 1666) // EROAREARA
        {
          if(response)  
     
    Sper sa ma puteti ajuta, multumesc.

  3. Nu ai auzit niciodata de GOOGLE.RO?

    Nu poti sa scrii pe GOOGLE.RO plugin geoip.so samp ?

    http://www.4shared.com/zip/DoN4f9FH/GEO-IP_v2.html

     

    Am cerut si plugin, de plugin am nevoie nu filterscript

  4. Ok, o sa incerc! Mersi

     

    Foloseste plugin-ul crashdetect si vezi de ce face asa .

    ​[15:11:50] [debug] Run time error 19: "File or function is not found"
    [15:11:50] [debug]  GetCountryName
    [15:11:50] [debug] Run time error 19: "File or function is not found"
    [15:11:50] [debug]  GetCountryName
    [15:11:50] Script[gamemodes/gmi.amx]: Run time error 19: "File or function is not found"
    [15:11:50] Number of vehicle models: 0
        Erorile astea mi le da

  5. Cand urc serverul pe host imi da acesta eroare la server log ! Ce sa fac ? Am compilat gm-ul si nu are nimic
    [14:01:27] Script[gamemodes/gmi.amx]: Run time error 19: "File or function is not found"
    [14:01:27] Number of vehicle models: 0
  6. CMD:skill(playerid,params[])
    {		
         if(gPlayerLogged[playerid] == 0)
    		{
    		     if(IsPlayerConnected(playerid))
    		    {
    		        SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    				return 1;
    		    }
            new x_nr[19],string[256];
            if(sscanf(params, "s[5]",x_nr))
            {
                SendClientMessage(playerid, COLOR_DS, "__________________ Skill Info __________________");
                SendClientMessage(playerid, COLOR_DS, "{B8DBFF}Synthax: /skill <Type Skill ID>");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(1)Lawyer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(2)Whore");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(3)Drugs Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(4)News Reporter ");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(5)Car Mechanic");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(6)Arms Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(7)Fishing");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(8)Rob");
                SendClientMessage(playerid, COLOR_DS, "{FFD633}(9)Muncitor in Cariera");
                return 1;
            }
            else if(strcmp(x_nr,"1",true) == 0)//Lawyer
            {
                new level = PlayerInfo[playerid][pLawSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"2",true) == 0)//Whore
            {
                new level = PlayerInfo[playerid][pSexSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 5."); }
            }
            else if(strcmp(x_nr,"3",true) == 0)//Drugs Dealer
            {
                new level = PlayerInfo[playerid][pDrugsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"4",true) == 0)//News Reporter
            {
                new level = PlayerInfo[playerid][pNewsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 5."); }
            }
            else if(strcmp(x_nr,"5",true) == 0)//Car Mechanic
            {
                new level = PlayerInfo[playerid][pMechSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 5."); }
            }
            else if(strcmp(x_nr,"6",true) == 0)//pMatSkill
            {
                new level = PlayerInfo[playerid][pMatSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"7",true) == 0)//Fishing
            {
                new level = PlayerInfo[playerid][pFishSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 5."); }
            }
            else if(strcmp(x_nr,"8",true) == 0)//Robbing
            {
                new level = PlayerInfo[playerid][pRobSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 250) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 251 && level <= 500) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 501 && level <= 999) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 1000) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 5."); }
            }
            else if(strcmp(x_nr,"9",true) == 0)//Muncitor
            {
                new level = PlayerInfo[playerid][pMuncitorSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 1."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 2 .", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 2."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 3 .", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 3."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 4 .", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 4."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 5.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 5."); }
            }
            else return SendClientMessage(playerid, COLOR_DS, "{999999}Invalid parameter.");
        }
        return 1;
    }

    Acum?

    ​C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37803) : error 029: invalid expression, assumed zero
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37803) : error 029: invalid expression, assumed zero
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37803) : warning 215: expression has no effect
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37803) : error 001: expected token: ";", but found "]"
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37803) : fatal error 107: too many error messa

    Linia:  if(gPlayerLogged[playerid] == 0)

  7. CMD:skill(playerid,params[])
    {
    		if(IsPlayerConnected(playerid))
    		{
    		    if(gPlayerLogged[playerid] == 0)
    		    {
    		        SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    				return 1;
    		    }
            new x_nr[19],string[256];
            if(sscanf(params, "s[5]",x_nr))
            {
                SendClientMessage(playerid, COLOR_DS, "__________________ Skill Info __________________");
                SendClientMessage(playerid, COLOR_DS, "{B8DBFF}Synthax: /skill <Type Skill ID>");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(1)Lawyer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(2)Whore");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(3)Drugs Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(4)News Reporter ");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(5)Car Mechanic");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(6)Arms Dealer");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(7)Fishing");
                  SendClientMessage(playerid, COLOR_DS, "{FFD633}(8)Rob");
                SendClientMessage(playerid, COLOR_DS, "{FFD633}(9)Muncitor in Cariera");
                return 1;
            }
            else if(strcmp(x_nr,"1",true) == 0)//Lawyer
            {
                new level = PlayerInfo[playerid][pLawSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to free %d more people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Lawyer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"2",true) == 0)//Whore
            {
                new level = PlayerInfo[playerid][pSexSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to have sex %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Whore Skill level is 5."); }
            }
            else if(strcmp(x_nr,"3",true) == 0)//Drugs Dealer
            {
                new level = PlayerInfo[playerid][pDrugsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to sell drugs %d times more to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Drugs Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"4",true) == 0)//News Reporter
            {
                new level = PlayerInfo[playerid][pNewsSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to use /news %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to use /news %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your News Reporter Skill level is 5."); }
            }
            else if(strcmp(x_nr,"5",true) == 0)//Car Mechanic
            {
                new level = PlayerInfo[playerid][pMechSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to fix/fill a car for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Car Mechanic Skill level is 5."); }
            }
            else if(strcmp(x_nr,"6",true) == 0)//pMatSkill
            {
                new level = PlayerInfo[playerid][pMatSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times more to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to deliver materials for %d times people to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Arms Dealer Skill level is 5."); }
            }
            else if(strcmp(x_nr,"7",true) == 0)//Fishing
            {
                new level = PlayerInfo[playerid][pFishSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Fish %d more Fishes to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Fishing Skill level is 5."); }
            }
            else if(strcmp(x_nr,"8",true) == 0)//Robbing
            {
                new level = PlayerInfo[playerid][pRobSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 1."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 250) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 2."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 251 && level <= 500) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 3."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 501 && level <= 999) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 4."); format(string, sizeof(string), "{FFD633}You need to Rob the City Bank %d more times to Level up.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 1000) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Your Rob Skill level is 5."); }
            }
            else if(strcmp(x_nr,"9",true) == 0)//Muncitor
            {
                new level = PlayerInfo[playerid][pMuncitorSkill];
                if(level >= 0 && level <= 50) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 1."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 2 .", 50 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 51 && level <= 100) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 2."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 3 .", 100 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 101 && level <= 200) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 3."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 4 .", 200 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 201 && level <= 400) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 4."); format(string, sizeof(string), "{FFD633}Mai fa %d curse pentru a trece la skill 5.", 400 - level); SendClientMessage(playerid, COLOR_DS, string); }
                else if(level >= 401) { SendClientMessage(playerid, COLOR_DS, "{FFD633}Skill 5."); }
            }
            else return SendClientMessage(playerid, COLOR_DS, "{999999}Invalid parameter.");
        }
        return 1;
    }

    Incearca asa :)

    ​C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37805) : error 029: invalid expression, assumed zero
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37805) : error 029: invalid expression, assumed zero
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37805) : warning 215: expression has no effect
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37805) : error 001: expected token: ";", but found "]"
    C:\Users\William\Desktop\server\gamemodes\gmi.pwn(37805) : fatal error 107: too many error messages on one line

    if(gPlayerLogged[playerid] == 0)

     

     

  8.  Imi da pe acesta linie if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai."); 

    Erorile acestea si cand bag alta comada tot aceste !

    Erorile:

     error 029: invalid expression, assumed zero
     error 029: invalid expression, assumed zero
     warning 215: expression has no effect
    error 001: expected token: ";", but found "]"
    fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


    4 Errors.

  9.  Problema intalnita (descriere):  You missed a step! Here's a list  of the potential causes:

    -The Mysql connection details are invalid

    -the database dump wasn't imported correctly

    -an unexpected  error  ocurred
    Ero(area / rile) / warning-(ul / urile): Mysql
    Liniile de cod / sursa / script-ul(obligatoriu): 
    Imagini / Video (optional):  http://i.imgur.com/yk6iAF5.png
    Ati incercat sa rezolvati singur?: Da!  

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