Jump to content

EmiNEm

Membru
  • Posts

    108
  • Joined

  • Last visited

    Never

Posts posted by EmiNEm

  1. am o problema la comanda /sellbiz, si anume nu imi da banii cu care l-am cumparat...chair niciun dolar

    if(strcmp(cmd, "/sellbiz", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    		{
    			GetPlayerName(playerid, playername, sizeof(playername));
    			if(PlayerInfo[playerid][pPbiskey] == 255)
    			{
    				SendClientMessage(playerid, COLOR_WHITE, "You don't own a bizz.");
    				return 1;
    			}
    			if(PlayerInfo[playerid][pMarried] > 0)
    		    {
    		        SendClientMessage(playerid, COLOR_GREY, "   Esti casatorit nu poti vinde Bizul !");
    		        return 1;
    		    }
    			if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(playername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0)
    			{
    				new bouse = PlayerInfo[playerid][pPbiskey]-100;
    				GivePlayerCash(playerid,SBizzInfo[bouse][sbTill]);
    				SBizzInfo[bouse][sbLocked] = 1;
    				SBizzInfo[bouse][sbOwned] = 0;
    				GetPlayerName(playerid, sendername, sizeof(sendername));
    				strmid(SBizzInfo[bouse][sbOwner], "The State", 0, strlen("The State"), 255);
    				strmid(SBizzInfo[bouse][sbExtortion], "No-one", 0, strlen("No-one"), 255);
    				//ConsumingMoney[playerid] = 1;
    				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    				sbizsale = Create3DTextLabel(string,0x8361FFFF,SBizzInfo[bouse][sbEntranceX], SBizzInfo[bouse][sbEntranceY], SBizzInfo[bouse][sbEntranceZ]+1,15,0,1);
    				SBizzInfo[bouse][sbTill] = 0;
    				PlayerInfo[playerid][pPbiskey] = 255;
    				OnPropUpdate();
    				OnPlayerUpdateEx(playerid);
    				return 1;
    			}
    			if(strcmp(playername, BizzInfo[PlayerInfo[playerid][pPbiskey]][bOwner], true) == 0)
    			{
    				new bouse = PlayerInfo[playerid][pPbiskey];
    				BizzInfo[bouse][bLocked] = 1;
    				BizzInfo[bouse][bOwned] = 0;
    				GetPlayerName(playerid, sendername, sizeof(sendername));
    				strmid(BizzInfo[bouse][bOwner], "The State", 0, strlen("The State"), 255);
    				strmid(BizzInfo[bouse][bExtortion], "No-one", 0, strlen("No-one"), 255);
    				//ConsumingMoney[playerid] = 1;
    				GivePlayerCash(playerid,BizzInfo[bouse][bTill]);
    				PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
    				bizsale = Create3DTextLabel(string,0x8361FFFF,BizzInfo[bouse][bEntranceX], BizzInfo[bouse][bEntranceY], BizzInfo[bouse][bEntranceZ]+1,15,0,1);
    				BizzInfo[bouse][bTill] = 0;
    				PlayerInfo[playerid][pPbiskey] = 255;
    				OnPropUpdate();
    				OnPlayerUpdateEx(playerid);
    				return 1;
    			}
    			else
    			{
    				SendClientMessage(playerid, COLOR_WHITE, "You don't own a business.");
    			}
    		}
    		return 1;
    	}

  2. salut, cine ma poate ajuta?

    problema e urmatoarea am pus dmv-ul de pe saveG la mine pe server toate bune si frumoase pana ajung cu masina la primul checkpoint si dupa nu mai apare niciunul.. stie cineva de ce?

    masina de test:

    if(newcar == 397)
            {
              if(TakingLesson[playerid] == 1)
              {
                 KillTimer(dmvtimer1);
                 DMVCountDown(playerid);
                 SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {ffffff}Ai la dispozitie {00bfff}350 {ffffff}secunde.");
                 SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {ffffff}Condu cu grija pe partea Dreapta si ai grija sa nu ciocnesti vehiculul.");
                 CP[playerid] = 100;
                 SetPlayerCheckpoint(playerid, 303.8098,-1486.1217,24.3288,5.0);
              }
              else
              {
                SendClientMessage(playerid,COLOR_GREY,"{30a030}[ProGaming]: {ffffff}Ne pare rau, dar acest Vehicul este doar pentru cei care dau {00bfff}Scoala de Soferi{ffffff}.");
                RemovePlayerFromVehicle(playerid);
              }
            }
    checkpointurile:
    else if(CP[playerid]==80)
        {
            DisablePlayerCheckpoint(playerid);
        }
        else if(CP[playerid] == 99)
        {
           DisablePlayerCheckpoint(playerid);
           CP[playerid] = 0;
        }
        else if(CP[playerid] == 100)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,303.8098,-1486.1217,24.3288,5.0);
            CP[playerid] = 101;
        }
        else if(CP[playerid] == 101)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,321.0405,-1487.5698,24.3971,5.0);
            CP[playerid] = 102;
        }
        else if(CP[playerid] == 102)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,332.4004,-1521.7406,35.5935,5.0);
            CP[playerid] = 103;
        }
        else if(CP[playerid] == 103)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,341.8365,-1646.9440,32.8328,5.0);
            CP[playerid] = 104;
        }
        else if(CP[playerid] == 104)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,611.5352,-1678.9283,15.7199,5.0);
            CP[playerid] = 105;
        }
        else if(CP[playerid] == 105)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,659.9307,-1589.2667,14.3100,5.0);
            CP[playerid] = 106;
        }
        else if(CP[playerid] == 106)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,851.0598,-1603.4723,13.1174,5.0);
            CP[playerid] = 107;
        }
        else if(CP[playerid] == 107)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,920.1339,-1494.7328,13.1081,5.0);
            CP[playerid] = 108;
        }
        else if(CP[playerid] == 108)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,945.0980,-1263.6965,15.2321,5.0);
            CP[playerid] = 109;
        }
        else if(CP[playerid] == 109)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,965.0189,-1035.6516,29.8217,5.0);
            CP[playerid] = 110;
        }
        else if(CP[playerid] == 110)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,898.0035,-974.9957,37.1853,5.0);
            CP[playerid] = 111;
        }
        else if(CP[playerid] == 111)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,703.0262,-1111.0601,17.9237,5.0);
            CP[playerid] = 112;
        }
        else if(CP[playerid] == 112)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,497.5240,-1272.5004,15.4058,5.0);
            CP[playerid] = 113;
        }
        else if(CP[playerid] == 113)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,292.2589,-1401.1156,13.5513,5.0);
            CP[playerid] = 114;
        }
        else if(CP[playerid] == 114)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,154.2040,-1542.7086,10.3029,5.0);
            CP[playerid] = 115;
        }
        else if(CP[playerid] == 115)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,167.0166,-1550.6135,11.5100,5.0);
            CP[playerid] = 116;
        }
        else if(CP[playerid] == 116)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,224.2065,-1516.2754,18.7458,5.0);
            CP[playerid] = 117;
        }
        else if(CP[playerid] == 117)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,308.3261,-1587.0647,32.7494,5.0);
            CP[playerid] = 118;
        }
        else if(CP[playerid] == 118)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,346.6926,-1501.1737,35.5951,5.0);
            CP[playerid] = 119;
        }
        else if(CP[playerid] == 119)
        {
            DisablePlayerCheckpoint(playerid);
            SetPlayerCheckpoint(playerid,302.8965,-1485.9672,24.3268,5.0);
            CP[playerid] = 120;
        }
        else if(CP[playerid] == 120)
        {
            new currentveh;
            currentveh = GetPlayerVehicleID(playerid);
            if(IsPlayerInAnyVehicle(playerid))
            {
            SetVehicleToRespawn(currentveh);
            }
            DisablePlayerCheckpoint(playerid);
            PlayerInfo[playerid][pCarLic] = 1;
            GivePlayerMoney(playerid,-700);
            TakingLesson[playerid] = 0;
            SendClientMessage(playerid,COLOR_LIGHTBLUE,"{30a030}[ProGaming]: {ffffff}Felicitari, ai trecut testul cu brio. Ai grjia!");
            CP[playerid] = 0;
            KillTimer(dmvcounttimer);
        }

  3. nu mai da eroare dar tot il pot folosi de cate ori vreau, ce nu am facut bine??

    #include <a_samp>
    
    #pragma tabsize 0
    
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_RED 0xFF3366FF
    
    #define Filterscript
    #if defined Filterscript
    new Is_Used[ MAX_PLAYERS ] = 0;
    
    forward g_Timer( playerid );
    public g_Timer( playerid )
    {
       if( Is_Used[ playerid ] == 1)
             Is_Used[ playerid ] = 0;
    
       return 1;
    }
    
    public OnFilterScriptInit()
    {
        SetTimer( "g_Timer", 300000, true );
    	print("\n--------------------------------------");
    	print(" GPS by Jofi");
    	print("--------------------------------------\n");
    	return 1;
    }
    
    public OnFilterScriptExit()
    {
    	return 1;
    }
    
    #else
    
    main()
    {
    	print("\n----------------------------------");
    	print(" GPS by Jofi");
    	print("----------------------------------\n");
    }
    
    #endif
    
    public OnGameModeInit()
    {
        SetTimer( "g_Timer", 300000, true );
    	return 1;
    }
    public OnPlayerConnect(playerid)
    Is_Used[ playerid ] = 0;
    
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    		if (strcmp(cmdtext, "/gps", true)==0)
    		{
    				if(IsPlayerConnected(playerid))
    		{
    				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
    				SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie] /gps2 (pagina urmatoare)");
    				SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (Sterge Checkpointul de pe harta)");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: CartierProGaming, Mall Banca, 24/7, Primarie");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Licente, GunShop, Ferma, CarPaint, Politie");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Pizza, Taxi, PigPen, Alhambra, S.R.I., Aeroport");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: BurgerShot, Benzinarie, Benzinarie2, Benzinarie3,");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: MasiniPersonale, VanzareMasini, Spital, FermaTractorist");
    				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
    			}
       }
       		if (strcmp(cmdtext, "/gps2", true)==0)
    		{
    				if(IsPlayerConnected(playerid))
    		{
    				SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
    				SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie]");
    				SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (Sterge Checkpointul de pe harta)");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: GroveStreet, Jefferson, Rodeo, SantaMaria, VeronaBeach");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Marina, Mulholland, Richman, FlintCounty, EastBeach");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: LosFlores, ElCorona, Ganton, Mall, Vinewood");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Dillimore, Blueberry, Montgomery, PalominoCreek");
    				SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
    			}
       }
    
    
                    if(IsPlayerConnected(playerid))
                    SetTimer( "g_Timer", 300000, true );
                    
    				if (strcmp(cmdtext, "/gps Licente", true)==0)
    				SetPlayerCheckpoint(playerid,2053.2761,-1909.5160,13.5469,5);
    
    				if (strcmp(cmdtext, "/gps Banca", true)==0)
    				SetPlayerCheckpoint(playerid,1461.7273,-1023.7429,23.4017,5);
    
    				if (strcmp(cmdtext, "/gps 24/7", true)==0)
    				SetPlayerCheckpoint(playerid,1315.3618,-899.8662,39.1489,5);
    
    				if (strcmp(cmdtext, "/gps MasiniPersonale", true)==0)
    				SetPlayerCheckpoint(playerid,847.510620,-2128.946044,12.370815,5);
    
    				if (strcmp(cmdtext, "/gps VanzareMasini", true)==0)
    				SetPlayerCheckpoint(playerid,1612.653076,-1015.431091,23.475412,5);
    
    				if (strcmp(cmdtext, "/gps CartierProGaming", true)==0)
    				SetPlayerCheckpoint(playerid,2865.053710,-1962.187255,11.109375,5);
    
    				if (strcmp(cmdtext, "/gps Aeroport", true)==0)
    				SetPlayerCheckpoint(playerid,1599.2776,-2328.4224,13.5366,5);
    
    				if (strcmp(cmdtext, "/gps Primarie", true)==0)
    				SetPlayerCheckpoint(playerid,1480.8268,-1744.1536,13.1170,5);
    
    				if (strcmp(cmdtext, "/gps Politie", true)==0)
    				SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
    
    				if (strcmp(cmdtext, "/gps GroveStreet", true)==0)
    				SetPlayerCheckpoint(playerid,2493.8511,-1669.5573,12.9113,5);
    
    				if (strcmp(cmdtext, "/gps Jefferson", true)==0)
    				SetPlayerCheckpoint(playerid,2220.9824,-1148.7661,25.3504,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie", true)==0)
    				SetPlayerCheckpoint(playerid,1005.4007,-940.1948,41.7549,5);
    
    				if (strcmp(cmdtext, "/gps Rodeo", true)==0)
    				SetPlayerCheckpoint(playerid,347.7415,-1367.7371,13.9776,5);
    
    				if (strcmp(cmdtext, "/SantaMaria -", true)==0)
    				SetPlayerCheckpoint(playerid,327.8009,-1797.7816,4.2844,5);
    
    				if (strcmp(cmdtext, "/gps VeronaBeach", true)==0)
    				SetPlayerCheckpoint(playerid,831.8949,-1819.0989,11.8452,5);
    
    				if (strcmp(cmdtext, "/gps Marina", true)==0)
    				SetPlayerCheckpoint(playerid,728.5689,-1593.4337,13.9832,5);
    
    				if (strcmp(cmdtext, "/gps GunShop", true)==0)
    				SetPlayerCheckpoint(playerid,1364.6945,-1279.8040,13.1127,5);
    
    				if (strcmp(cmdtext, "/gps Spital", true)==0)
    				SetPlayerCheckpoint(playerid,1183.3936,-1323.9601,13.1430,5);
    
    				if (strcmp(cmdtext, "/gps Mall", true)==0)
    				SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
    
    				if (strcmp(cmdtext, "/gps Mulholland", true)==0)
    				SetPlayerCheckpoint(playerid,1338.9668,-694.6091,91.4037,5);
    
    				if (strcmp(cmdtext, "/gps Richman", true)==0)
    				SetPlayerCheckpoint(playerid,675.6179,-1061.0540,48.9433,5);
    
    				if (strcmp(cmdtext, "/gps FlintCounty", true)==0)
    				SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie2", true)==0)
    				SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
    
    				if (strcmp(cmdtext, "/gps Ferma", true)==0)
    				SetPlayerCheckpoint(playerid,-376.0385,-1440.0708,25.2968,5);
    
    				if (strcmp(cmdtext, "/gps BurgerShot", true)==0)
    				SetPlayerCheckpoint(playerid,819.6470,-1619.0469,13.1127,5);
    
    				if (strcmp(cmdtext, "/gps Taxi", true)==0)
    				SetPlayerCheckpoint(playerid,1809.1172,-1864.4482,13.1492,5);
    
    				if (strcmp(cmdtext, "/gps Pizza", true)==0)
    				SetPlayerCheckpoint(playerid,2093.0984,-1807.0825,13.1196,5);
    
    				if (strcmp(cmdtext, "/gps CarPaint", true)==0)
    				SetPlayerCheckpoint(playerid,2074.3252,-1830.9292,13.1171,5);
    
    				if (strcmp(cmdtext, "/gps EastBeach", true)==0)
    				SetPlayerCheckpoint(playerid,2732.0156,-1662.9469,12.8089,5);
    
    				if (strcmp(cmdtext, "/gps LosFlores", true)==0)
    				SetPlayerCheckpoint(playerid,2729.4907,-1258.4280,59.1302,5);
    
    				if (strcmp(cmdtext, "/gps PigPen", true)==0)
    				SetPlayerCheckpoint(playerid,2418.3625,-1234.1200,23.9079,5);
    
    				if (strcmp(cmdtext, "/gps Alhambra", true)==0)
    				SetPlayerCheckpoint(playerid,1827.9978,-1683.6870,13.1136,5);
    
    				if (strcmp(cmdtext, "/gps FermaTractorist", true)==0)
    				SetPlayerCheckpoint(playerid,-37.921279,-1.555945,3.117187,5);
    
    				if (strcmp(cmdtext, "/gps S.R.I.", true)==0)
    				SetPlayerCheckpoint(playerid,1534.5702,-1448.2894,12.9553,5);
    
    				if (strcmp(cmdtext, "/gps ElCorona", true)==0)
    				SetPlayerCheckpoint(playerid,1822.0739,-2081.0579,12.9534,5);
    
    				if (strcmp(cmdtext, "/gps Ganton", true)==0)
    				SetPlayerCheckpoint(playerid,2314.2036,-1742.4119,12.9531,5);
    
    				if (strcmp(cmdtext, "/gps Mall", true)==0)
    				SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
    
    				if (strcmp(cmdtext, "/gps Vinewood", true)==0)
    				SetPlayerCheckpoint(playerid,1103.8586,-941.0670,42.4828,5);
    
    				if (strcmp(cmdtext, "/gps Dillimore", true)==0)
    				SetPlayerCheckpoint(playerid,635.8654,-570.4843,15.9069,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie3", true)==0)
    				SetPlayerCheckpoint(playerid,651.2009,-563.4557,15.8840,5);
    
    				if (strcmp(cmdtext, "/gps Blueberry", true)==0)
    				SetPlayerCheckpoint(playerid,161.5037,-205.9166,1.1486,5);
    
    				if (strcmp(cmdtext, "/gps Montgomery", true)==0)
    				SetPlayerCheckpoint(playerid,1340.4523,257.0470,19.1249,5);
    
    				if (strcmp(cmdtext, "/gps PalominoCreek", true)==0)
    				SetPlayerCheckpoint(playerid,2337.7549,43.0897,26.0518,5);
    
    				if(strcmp(cmdtext,"/oprestegps",true)==0)
     	{
    		if(IsPlayerConnected(playerid))
    		{
    				DisablePlayerCheckpoint(playerid);
    			}
    		}
    
    	return 0;
    }

  4. warning 211: possibly unintended assignment

    Linia 16 e problema: if( Is_Used[ playerid ] = 1)

    daca pun fara if(...) imi da: error 001: expected token: ";", but found "-identifier-"

    nu poti sa imi faci tu tot fsul cu timer?

  5. D:\gm\[GM] Pro-Gaming\filterscripts\GPS.pwn(17) : warning 204: symbol is assigned a value that is never used: "Is_Used"

    aici e eroarea:

    public g_Timer( playerid )

    {

          Is_Used = true;

          return 1;

    }

  6. Salut, cum as putea face un timer pt /gps sa se poata folosi doar odata la 5 minute ??

    #include <a_samp>
    
    #pragma tabsize 0
    
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_RED 0xFF3366FF
    
    #define Filterscript
    #if defined Filterscript
    
    public OnFilterScriptInit()
    {
    	print("\n--------------------------------------");
    	print(" GPS by Jofi");
    	print("--------------------------------------\n");
    	return 1;
    }
    
    public OnFilterScriptExit()
    {
    	return 1;
    }
    
    #else
    
    main()
    {
    	print("\n----------------------------------");
    	print(" GPS by Jofi");
    	print("----------------------------------\n");
    }
    
    #endif
    
    public OnGameModeInit()
    {
    	return 1;
    }
    
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    		if (strcmp(cmdtext, "/gps", true)==0)
    		{
    				if(IsPlayerConnected(playerid))
    		{
    				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
    				SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie] /gps2 (pagina urmatoare)");
    				SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (Sterge Checkpointul de pe harta)");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: CartierProGaming, Mall Banca, 24/7, Primarie");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Licente, GunShop, Ferma, CarPaint, Politie");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Pizza, Taxi, PigPen, Alhambra, S.R.I., Aeroport");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: BurgerShot, Benzinarie, Benzinarie2, Benzinarie3,");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: MasiniPersonale, VanzareMasini, Spital, FermaTractorist");
    				SendClientMessage(playerid, COLOR_RED, "-----------------------------------------------------------------------------------------");
    			}
       }
       		if (strcmp(cmdtext, "/gps2", true)==0)
    		{
    				if(IsPlayerConnected(playerid))
    		{
    				SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
    				SendClientMessage(playerid, COLOR_GREEN, "/gps [locatie]");
    				SendClientMessage(playerid, COLOR_GREEN, "/oprestegps (Sterge Checkpointul de pe harta)");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: GroveStreet, Jefferson, Rodeo, SantaMaria, VeronaBeach");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Marina, Mulholland, Richman, FlintCounty, EastBeach");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: LosFlores, ElCorona, Ganton, Mall, Vinewood");
    				SendClientMessage(playerid, COLOR_ORANGE, "Locatie: Dillimore, Blueberry, Montgomery, PalominoCreek");
    				SendClientMessage(playerid, COLOR_RED, "----------------------------------------------------------------------------------------");
    			}
       }
    
    
                    if(IsPlayerConnected(playerid))
                    
    				if (strcmp(cmdtext, "/gps Licente", true)==0)
    				SetPlayerCheckpoint(playerid,2053.2761,-1909.5160,13.5469,5);
    
    				if (strcmp(cmdtext, "/gps Banca", true)==0)
    				SetPlayerCheckpoint(playerid,1461.7273,-1023.7429,23.4017,5);
    
    				if (strcmp(cmdtext, "/gps 24/7", true)==0)
    				SetPlayerCheckpoint(playerid,1315.3618,-899.8662,39.1489,5);
    
    				if (strcmp(cmdtext, "/gps MasiniPersonale", true)==0)
    				SetPlayerCheckpoint(playerid,847.510620,-2128.946044,12.370815,5);
    
    				if (strcmp(cmdtext, "/gps VanzareMasini", true)==0)
    				SetPlayerCheckpoint(playerid,1612.653076,-1015.431091,23.475412,5);
    
    				if (strcmp(cmdtext, "/gps CartierProGaming", true)==0)
    				SetPlayerCheckpoint(playerid,2865.053710,-1962.187255,11.109375,5);
    
    				if (strcmp(cmdtext, "/gps Aeroport", true)==0)
    				SetPlayerCheckpoint(playerid,1599.2776,-2328.4224,13.5366,5);
    
    				if (strcmp(cmdtext, "/gps Primarie", true)==0)
    				SetPlayerCheckpoint(playerid,1480.8268,-1744.1536,13.1170,5);
    
    				if (strcmp(cmdtext, "/gps Politie", true)==0)
    				SetPlayerCheckpoint(playerid,1544.0143,-1675.6829,13.5576,5);
    
    				if (strcmp(cmdtext, "/gps GroveStreet", true)==0)
    				SetPlayerCheckpoint(playerid,2493.8511,-1669.5573,12.9113,5);
    
    				if (strcmp(cmdtext, "/gps Jefferson", true)==0)
    				SetPlayerCheckpoint(playerid,2220.9824,-1148.7661,25.3504,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie", true)==0)
    				SetPlayerCheckpoint(playerid,1005.4007,-940.1948,41.7549,5);
    
    				if (strcmp(cmdtext, "/gps Rodeo", true)==0)
    				SetPlayerCheckpoint(playerid,347.7415,-1367.7371,13.9776,5);
    
    				if (strcmp(cmdtext, "/SantaMaria -", true)==0)
    				SetPlayerCheckpoint(playerid,327.8009,-1797.7816,4.2844,5);
    
    				if (strcmp(cmdtext, "/gps VeronaBeach", true)==0)
    				SetPlayerCheckpoint(playerid,831.8949,-1819.0989,11.8452,5);
    
    				if (strcmp(cmdtext, "/gps Marina", true)==0)
    				SetPlayerCheckpoint(playerid,728.5689,-1593.4337,13.9832,5);
    
    				if (strcmp(cmdtext, "/gps GunShop", true)==0)
    				SetPlayerCheckpoint(playerid,1364.6945,-1279.8040,13.1127,5);
    
    				if (strcmp(cmdtext, "/gps Spital", true)==0)
    				SetPlayerCheckpoint(playerid,1183.3936,-1323.9601,13.1430,5);
    
    				if (strcmp(cmdtext, "/gps Mall", true)==0)
    				SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
    
    				if (strcmp(cmdtext, "/gps Mulholland", true)==0)
    				SetPlayerCheckpoint(playerid,1338.9668,-694.6091,91.4037,5);
    
    				if (strcmp(cmdtext, "/gps Richman", true)==0)
    				SetPlayerCheckpoint(playerid,675.6179,-1061.0540,48.9433,5);
    
    				if (strcmp(cmdtext, "/gps FlintCounty", true)==0)
    				SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie2", true)==0)
    				SetPlayerCheckpoint(playerid,-116.5864,-1186.2360,2.2648,5);
    
    				if (strcmp(cmdtext, "/gps Ferma", true)==0)
    				SetPlayerCheckpoint(playerid,-376.0385,-1440.0708,25.2968,5);
    
    				if (strcmp(cmdtext, "/gps BurgerShot", true)==0)
    				SetPlayerCheckpoint(playerid,819.6470,-1619.0469,13.1127,5);
    
    				if (strcmp(cmdtext, "/gps Taxi", true)==0)
    				SetPlayerCheckpoint(playerid,1809.1172,-1864.4482,13.1492,5);
    
    				if (strcmp(cmdtext, "/gps Pizza", true)==0)
    				SetPlayerCheckpoint(playerid,2093.0984,-1807.0825,13.1196,5);
    
    				if (strcmp(cmdtext, "/gps CarPaint", true)==0)
    				SetPlayerCheckpoint(playerid,2074.3252,-1830.9292,13.1171,5);
    
    				if (strcmp(cmdtext, "/gps EastBeach", true)==0)
    				SetPlayerCheckpoint(playerid,2732.0156,-1662.9469,12.8089,5);
    
    				if (strcmp(cmdtext, "/gps LosFlores", true)==0)
    				SetPlayerCheckpoint(playerid,2729.4907,-1258.4280,59.1302,5);
    
    				if (strcmp(cmdtext, "/gps PigPen", true)==0)
    				SetPlayerCheckpoint(playerid,2418.3625,-1234.1200,23.9079,5);
    
    				if (strcmp(cmdtext, "/gps Alhambra", true)==0)
    				SetPlayerCheckpoint(playerid,1827.9978,-1683.6870,13.1136,5);
    
    				if (strcmp(cmdtext, "/gps FermaTractorist", true)==0)
    				SetPlayerCheckpoint(playerid,-37.921279,-1.555945,3.117187,5);
    
    				if (strcmp(cmdtext, "/gps S.R.I.", true)==0)
    				SetPlayerCheckpoint(playerid,1534.5702,-1448.2894,12.9553,5);
    
    				if (strcmp(cmdtext, "/gps ElCorona", true)==0)
    				SetPlayerCheckpoint(playerid,1822.0739,-2081.0579,12.9534,5);
    
    				if (strcmp(cmdtext, "/gps Ganton", true)==0)
    				SetPlayerCheckpoint(playerid,2314.2036,-1742.4119,12.9531,5);
    
    				if (strcmp(cmdtext, "/gps Mall", true)==0)
    				SetPlayerCheckpoint(playerid,1129.145751,-1443.013916,15.796875,5);
    
    				if (strcmp(cmdtext, "/gps Vinewood", true)==0)
    				SetPlayerCheckpoint(playerid,1103.8586,-941.0670,42.4828,5);
    
    				if (strcmp(cmdtext, "/gps Dillimore", true)==0)
    				SetPlayerCheckpoint(playerid,635.8654,-570.4843,15.9069,5);
    
    				if (strcmp(cmdtext, "/gps Benzinarie3", true)==0)
    				SetPlayerCheckpoint(playerid,651.2009,-563.4557,15.8840,5);
    
    				if (strcmp(cmdtext, "/gps Blueberry", true)==0)
    				SetPlayerCheckpoint(playerid,161.5037,-205.9166,1.1486,5);
    
    				if (strcmp(cmdtext, "/gps Montgomery", true)==0)
    				SetPlayerCheckpoint(playerid,1340.4523,257.0470,19.1249,5);
    
    				if (strcmp(cmdtext, "/gps PalominoCreek", true)==0)
    				SetPlayerCheckpoint(playerid,2337.7549,43.0897,26.0518,5);
    
    				if(strcmp(cmdtext,"/oprestegps",true)==0)
     	{
    		if(IsPlayerConnected(playerid))
    		{
    				DisablePlayerCheckpoint(playerid);
    			}
    		}
    
    	return 0;
    }

  7. imi da erori:

    D:\gm\big-network\pawno\include\mSelection.inc(119) : error 017: undefined symbol "CreatePlayerTextDraw"
    D:\gm\big-network\pawno\include\mSelection.inc(119) : warning 213: tag mismatch
    D:\gm\big-network\pawno\include\mSelection.inc(120) : error 017: undefined symbol "PlayerTextDrawUseBox"
    D:\gm\big-network\pawno\include\mSelection.inc(121) : error 017: undefined symbol "PlayerTextDrawLetterSize"
    D:\gm\big-network\pawno\include\mSelection.inc(122) : error 017: undefined symbol "PlayerTextDrawFont"
    D:\gm\big-network\pawno\include\mSelection.inc(123) : error 017: undefined symbol "PlayerTextDrawSetShadow"
    D:\gm\big-network\pawno\include\mSelection.inc(124) : error 017: undefined symbol "PlayerTextDrawSetOutline"
    D:\gm\big-network\pawno\include\mSelection.inc(125) : error 017: undefined symbol "PlayerTextDrawColor"
    D:\gm\big-network\pawno\include\mSelection.inc(126) : error 017: undefined symbol "PlayerTextDrawShow"
    D:\gm\big-network\pawno\include\mSelection.inc(116) : warning 203: symbol is never used: "Ypos"
    D:\gm\big-network\pawno\include\mSelection.inc(116) : warning 203: symbol is never used: "Xpos"
    D:\gm\big-network\pawno\include\mSelection.inc(116) : warning 203: symbol is never used: "playerid"
    D:\gm\big-network\pawno\include\mSelection.inc(136) : error 017: undefined symbol "CreatePlayerTextDraw"
    D:\gm\big-network\pawno\include\mSelection.inc(136) : warning 213: tag mismatch
    D:\gm\big-network\pawno\include\mSelection.inc(137) : error 017: undefined symbol "PlayerTextDrawUseBox"
    D:\gm\big-network\pawno\include\mSelection.inc(138) : error 017: undefined symbol "PlayerTextDrawBoxColor"
    D:\gm\big-network\pawno\include\mSelection.inc(139) : error 017: undefined symbol "PlayerTextDrawBackgroundColor"
    D:\gm\big-network\pawno\include\mSelection.inc(140) : error 017: undefined symbol "PlayerTextDrawLetterSize"
    D:\gm\big-network\pawno\include\mSelection.inc(141) : error 017: undefined symbol "PlayerTextDrawFont"
    D:\gm\big-network\pawno\include\mSelection.inc(142) : error 017: undefined symbol "PlayerTextDrawSetShadow"
    D:\gm\big-network\pawno\include\mSelection.inc(143) : error 017: undefined symbol "PlayerTextDrawSetOutline"
    D:\gm\big-network\pawno\include\mSelection.inc(144) : error 017: undefined symbol "PlayerTextDrawColor"
    D:\gm\big-network\pawno\include\mSelection.inc(145) : error 017: undefined symbol "PlayerTextDrawSetSelectable"
    D:\gm\big-network\pawno\include\mSelection.inc(146) : error 017: undefined symbol "PlayerTextDrawAlignment"
    D:\gm\big-network\pawno\include\mSelection.inc(147) : error 017: undefined symbol "PlayerTextDrawTextSize"
    D:\gm\big-network\pawno\include\mSelection.inc(148) : error 017: undefined symbol "PlayerTextDrawShow"
    D:\gm\big-network\pawno\include\mSelection.inc(133) : warning 203: symbol is never used: "Height"
    D:\gm\big-network\pawno\include\mSelection.inc(133) : warning 203: symbol is never used: "Width"
    D:\gm\big-network\pawno\include\mSelection.inc(133) : warning 203: symbol is never used: "Ypos"
    D:\gm\big-network\pawno\include\mSelection.inc(133) : warning 203: symbol is never used: "Xpos"
    D:\gm\big-network\pawno\include\mSelection.inc(133) : warning 203: symbol is never used: "playerid"
    D:\gm\big-network\pawno\include\mSelection.inc(157) : error 017: undefined symbol "CreatePlayerTextDraw"
    D:\gm\big-network\pawno\include\mSelection.inc(157) : warning 213: tag mismatch
    D:\gm\big-network\pawno\include\mSelection.inc(158) : error 017: undefined symbol "PlayerTextDrawUseBox"
    D:\gm\big-network\pawno\include\mSelection.inc(159) : error 017: undefined symbol "PlayerTextDrawLetterSize"
    D:\gm\big-network\pawno\include\mSelection.inc(160) : error 017: undefined symbol "PlayerTextDrawFont"
    D:\gm\big-network\pawno\include\mSelection.inc(161) : error 017: undefined symbol "PlayerTextDrawSetShadow"
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.
    

  8. salut, dupa cum spune si numele topicului as vrea sa rezolv si eu problema cu kick si ban.... m-am chinuit vreo 2 ore si tot nu am reusit....

    va rog explicati-mi detaliat...

    comanda mea de /kick:

    if(strcmp(cmd, "/kick", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	    {
    	    	tmp = strtok(cmdtext, idx);
    			if(!strlen(tmp))
    			{
    				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /kick [playerid/PartOfName] [reason]");
    				return 1;
    			}
    			giveplayerid = ReturnUser(tmp);
    			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAgent] >= 1)
    			{
    				if(IsPlayerConnected(giveplayerid))
    				{
    				    if(giveplayerid != INVALID_PLAYER_ID)
    				    {
    					    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    						GetPlayerName(playerid, sendername, sizeof(sendername));
    						new length = strlen(cmdtext);
    						while ((idx < length) && (cmdtext[idx] <= ' '))
    						{
    							idx++;
    						}
    						new offset = idx;
    						new result[64];
    						while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    						{
    							result[idx - offset] = cmdtext[idx];
    							idx++;
    						}
    						result[idx - offset] = EOS;
    						if(!strlen(result))
    						{
    							SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /kick [playerid/PartOfName] [reason]");
    							return 1;
    						}
    						if(kicktime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Wait 10 seconds!");
    						new year, month,day;
    						getdate(year, month, day);
    						format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
    						KickLog(string);
    						format(string, sizeof(string), "AdmCmd: %s was kicked by %s, reason: %s", giveplayer, sendername, (result));
    						Kick(giveplayerid);
    						return 1;
    					}
    				}
    			}
    			else
    			{
    				format(string, sizeof(string), "   %d nu este online.", giveplayerid);
    				SendClientMessage(playerid, COLOR_GRAD1, string);
    			}
    		}
    		return 1;
    	}
    cica asta e rezolvarea:
    //In order to display a message (eg. reason) for the player before the connection is closed you have to use a delay:
    
    forward KickPublic(playerid);
    public KickPublic(playerid) { Kick(playerid); }
    
    stock KickWithMessage(playerid, message[])
    {
        SendClientMessage(playerid, 0xFF4444FF, message);
        SetTimerEx("KickPublic", 1000, 0, "d", playerid); 	//Delay of 1 second before kicking the player so he recieves the message
    }
    
    public OnPlayerCommandText(playerid, cmdtext[])
    {
        if(strcmp(cmdtext, "/kickme", true) == 0)
        {
            //Kicks the player who the executed this command
            KickWithMessage(playerid, "You have been kicked.");
            return 1;
        }
        return 0;
    }
    //by Kye

    am incercat si cu asta dar nu reusesc

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