Jump to content

bL3s

Membru
  • Posts

    42
  • Joined

  • Last visited

    Never

Posts posted by bL3s

  1. Cum pot face o comanda care sa respawneze un vehicul anume.

    Gen

    if(strcmp(cmd, "/respawncar", true) == 0 || strcmp(cmd, "/rc", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pVeh] == 5 )

    {

        SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

        return 1;

    }

    if(CarRespawn(pVEH))

    {

    GameTextForPlayer(playerid, "~r~Car Respawned", 5000, 1);

    }

    }

    return 1;

    }

    Deci daca playerul are pVeh = 5 sa respawneze masina cu id 5 (

  2. Am doar 1 fs, cel de la JunkBuster O.o

    Cand incerc sa il compilez primesc urmatoarele erori

    C:\DOCUME~1\ADMINI~1\Desktop\Server\FILTER~1\JUNKBU~1.PWN(3283) : error 017: undefined symbol "GetPlayerSurfingObjectID"

    C:\DOCUME~1\ADMINI~1\Desktop\Server\FILTER~1\JUNKBU~1.PWN(3323) : error 017: undefined symbol "GetPlayerDistanceFromPoint"

    C:\DOCUME~1\ADMINI~1\Desktop\Server\FILTER~1\JUNKBU~1.PWN(4876) : error 017: undefined symbol "GetVehicleDistanceFromPoint"

    C:\DOCUME~1\ADMINI~1\Desktop\Server\FILTER~1\JUNKBU~1.PWN(4881) : error 017: undefined symbol "GetVehicleDistanceFromPoint"

  3. Le-am facut update, am deschis serverul si nu am primit crash  :cool:

    Dar dupa ce am intrat pe el nu functionau toate comenzile, nu mergeau spawnurile si nici masini pe strada nu erau :-??

    Any ideea?

  4. Liniile 37 - 43 din Dini.inc

    stock  dini_Create(filename[]) {

    new File:fhnd;

    if (fexist(filename)) return false;

    fhnd=fopen(filename,io_write);

    fclose(fhnd);

    return true;

    }

    Liniile 2519 - 2543 din JunkBuster.inc

    public OnGameModeInit()

    {

    if(!CallLocalFunction("JB_OnGameModeInit",""))

    {

        JB_Log("[WARNING!]");

        JB_Log("JunkBuster is not used in gamemode or OnGameModeInit returns 0.");

        JB_Log("Make sure you use JunkBuster.inc in your gamemode. If you want to");

            JB_Log("use JunkBuster in filterscripts, too, include  JunkBusterFS.inc in");

            JB_Log("your filterscript.");

            JB_Log("It's recommended to include JunkBuster.inc in your gamemode");

    }

    dini_Remove(BAD_RCON_LOGIN_FILE);

    dini_Create(BAD_RCON_LOGIN_FILE);

    ConfigJunkBuster();

    SetTimer("JunkBuster",1000,true);

    SetTimer("GlobalUpdate",60*1000*4,true);// Every 4 minutes

    SetTimer("SpamUpdate",3500,true);

    SetTimer("TempBanUpdate",1000*60*60,true);// Every hour

    if(JB_Variables[WARN_PLAYERS])

        SendRconCommand("mapname JunkBuster Anti-Cheat");

    JB_Log("JunkBuster has successfully been loaded.");

    return 1;

    }

  5. Acum primesc urmatorul crash:

    [02:12:32] Crash caused by fclose on line 41 in C:\Documents and Settings\Administrator\Desktop\Server\pawno\include\Dini.inc (gamemodes\mygm.amx)

    [02:12:32] Stack trace of gamemodes\mygm.amx (most recent call first):

    [02:12:32]  dini_Create on line 2532 in C:\Documents and Settings\Administrator\Desktop\Server\pawno\include\JunkBuster.inc

    [02:12:32]  OnGameModeInit (entry point)

    Idei?

  6. Cand incerc sa pornesc samp-server.exe

    Primesc urmatoarea eroare:

    SA-MP Server: 0.3c

    Exception At Address: 0x004A2D7B

    Registers:

    EAX: 0x0012FDA0 EBX: 0x015228B8 ECX: 0x00000000 EDX: 0x00405910

    ESI: 0x00000000 EDI: 0x00FADEC8 EBP: 0x0012FDB0 ESP: 0x0012FD88

    EFLAGS: 0x00010286

    Stack:

    +0000: 0x00FADEC8  0x00FADEC8  0x015228B8  0xFFFFFFFF

    +0010: 0x0012FD88  0x0012F9AC  0x0012FE5C  0x004A6BC4

    +0020: 0x004C1208  0xFFFFFFFF  0x01525FC4  0x0040591D

    +0030: 0x00000000  0x00401096  0x00FADEC8  0x01BC8244

    +0040: 0x016A1F8C  0x00402BB3  0x00FADEC8  0x0000001F

    +0050: 0x0012FDF0  0x01BC8244  0x004F52B0  0x00FADEC8

    +0060: 0x00000001  0x00000000  0x00000000  0x005262B4

    +0070: 0x005262B8  0x005262E0  0x005222E4  0x005262C4

    +0080: 0x005222E4  0x015228B8  0x016A1F8C  0x00000000

    +0090: 0x01520020  0x0017F6D4  0x00483D74  0x00FADEC8

    +00A0: 0x0012FE38  0x00000092  0x00A67948  0xFFFFFFFF

    +00B0: 0x00000092  0x00A67948  0x00498D72  0x004F52B0

    +00C0: 0x004C06B9  0x00A67801  0xFFFFFFFF  0x00000000

    +00D0: 0x00FADEC8  0x0012FEDC  0x004B4998  0xFFFFFFFF

    +00E0: 0x004981AF  0x00000001  0x00000000  0x00000A28

    +00F0: 0x0012FFC0  0x7FFD4000  0x00002BA3  0x00010101

    +0100: 0x0000004B  0x00001E61  0x00000070  0x000008CC

    +0110: 0x00A67948  0x656D6167  0x65646F6D  0x00003531

    +0120: 0x004CA014  0x004CA010  0x7FFD4000  0x004B4C90

    +0130: 0x0012FEA8  0x0012FEA4  0x0012FFB0  0x004A6BC4

    Ce poate cauza aceasta eroare?

  7. Extensia este .ini

    va pot da exemple de nume care nu a salvat, si care a salvat.. eu unul nu imi pot da seama de ce se intampla doar unora..:|

    Nume care au mers: anKar4 , PepSi

    Nume care nu au mers: DickyDude , KinderBueno

  8. Buna ziua,

    Acest "bug" suna in felul urmator, cand un player intra pentru prima oara pe server, ii da sa se inregistreze etc.. toate bune si frumoase:)

    Insa dupa primul relog, acestui player serverul nu ii recunoaste contul, spune: "Please register you haven't an account"

    Dupa ce playerul incearca sa se reinregistreze, serverul spune : "This username is already taken, please choose a different one".

    Ps: Acest bug este doar la unele nume.. nu la toate:) unele conturi merg perfect, fara probleme.. in timp ce altele dupa primul relog au bug:|.

    Ajutor va rog!

  9. Buna ziua, astazi la ora 9:00 mi-am pus serverul pe host, toate bune si frumoase pana la ora 16:00 cand m-am gandit sa dau un restart pentru a face un mic update.:|

    Dupa restart, majoritatea playerilor nu se mai puteau loga pe contul respectiv, cand intrau le spunea ca nu au cont si sa se inregistreze, iar daca incercau sa se inregistreze iar le spune : "That nick is taken, choose another one".

    Aveti idee ce pot face?:-??

  10. Pai vezi?. Atunci nu mai sari cu gura...

    Si inca ceva...

    Ma gandesc cand faci comanda /enter :)), te da acolo iar apoi cand iesi la piscina aia :))) si vezi aia in jur cu obiectele alea multe pe acolo :)), si aia e un teleport /plaja sau cum numesti tu celelalte telepoarte :))

    PS: Pace :))

    OFF: Invata sa te exprimi.. nu se intelege nimic din postul tau

    ON: Frumos Marik, bravo:)

  11. Probleme rpg-

    Asta inseamna godfather asta inseamna tc!

    In loc sa comentezi, ai putea sa ma ajuti :|

    Am vazut si alte topicuri in care sunt probleme la gamemode-ul godfather sau alt rp si nu s-au inchis:|

    Asa ca... shh :shocked:

    + ca aceasta comanda poate fi folosita si pe servere stunt..

    Daca am gresit, dati tc!

    si dumnezeu cu mila... eu nu mai postez odata.

  12. 	if(strcmp(cmdtext, "/usedrugs", true) == 0)
    	{
    	    if(IsPlayerConnected(playerid))
    	   	{
    	   	    if(PlayerBoxing[playerid] > 0)
    	        {
    	            SendClientMessage(playerid, COLOR_GREY, "   Cant use Drugs while you are fighting !");
    	            return 1;
    	        }
    			if(PlayerInfo[playerid][pDrugs] > 1)
    			{
    			    PlayerStoned[playerid] += 1;
    			    if(PlayerStoned[playerid] >= 2) { GameTextForPlayer(playerid, "~w~You are~n~~p~Stoned", 4000, 1); }
    			    new Float:health;
    			    GetPlayerHealth(playerid, health);
    			    if(PlayerInfo[playerid][pDrugPerk] > 0)
    			    {
    			        new hp = 2 * PlayerInfo[playerid][pDrugPerk]; hp += 20;
    					SetPlayerHealth(playerid, health + hp);
    			    }
    			    else
    			    {
    			        SetPlayerHealth(playerid, health + 20.0);
    			    }
    			    SendClientMessage(playerid, COLOR_GREY, "   2 Drug Grams used !");
    			    PlayerInfo[playerid][pDrugs] -= 2;
    			    if(STDPlayer[playerid]==1)
    				{
    				     STDPlayer[playerid] = 0;
    				     SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are no longer infected with a STD anymore because of the Drugs !");
    				}
    				else if(STDPlayer[playerid]==2)
    				{
    				     STDPlayer[playerid] = 1;
    				     SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You lowered the STD to Chlamydia because of the Drugs !");
    				}
    				else if(STDPlayer[playerid]==3)
    				{
    				     STDPlayer[playerid] = 2;
    				     SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You lowered the STD to Gonorrhea because of the Drugs !");
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GREY, "   You dont have any Drug Grams left !");
    			}
    		}//not connected
    		return 1;
    	}

    Incearc-o pe asta ,trebuie sa-ti mearga 100%

    Eu am intrebat ce este gresit la a mea:|

    Nu imi trebuie comanda copiata din alt gm..

  13. Am urmatoarea comanda

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

    {

        if(IsPlayerConnected(playerid))

      {

          if(PlayerBoxing[playerid] > 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  Cant use Drugs while you are fighting !");

                return 1;

            }

    new Float:health;

        GetPlayerHealth(playerid,health);

    if(PlayerInfo[playerid][pDrugs] > 4)

    {

        SetPlayerHealth (playerid, health+50);

          SendClientMessage(playerid, COLOR_GREY, "  5 Drug Grams used !");

        PlayerInfo[playerid][pDrugs] -= 5;

        GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, sizeof(string), "* %s used 5 drug grams.", sendername);

        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

        SetTimerEx("Drugs", 150000, 0, "%d", playerid);

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  You dont have enough Drug Grams left !");

    }

    }//not connected

    return 1;

    }

    De fiecare data cand o folosesc, se inchide server-ul :))

    Aveti idee ce este gresit la comanda?:)

  14. Buna ziua,

    Azi mi-am pus server-ul pe host, si l-am pornit:) toate bune si frumoase.. insa am intampinat o problema..

    La unii playeri nu li se saleava conturile:|

    Exemplu:

    Gigel intra, face o misiune, iese, si cand intra inapoi ii se reseteaza contul si trebuie sa se inregistreze din nou..

    Aveti idee de ce?:|

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