Jump to content

mixT

Membru
  • Posts

    16
  • Joined

  • Last visited

Posts posted by mixT

    • Problema intalnita (descriere):   Deci, am un gamemode, de pe net, recunosc si am luat si un FS tot de pe net. Problema este in joc. Daca nu-i bag FS-ul sa mearga, cand dau comanda "/getcar 1" imi vine NRG-ul meu, dupa ce bag FS-ul si dau "/getcar 1" imi vine o masina de la FS. As vrea ca la comanda "/getcar 1" sa-mi vina iar NRG-ul, iar masina de la taietorul de lemne sa fie alt id. 
    • Ero(area / rile) / warning-(ul / urile):   Fara erori/ warning-uri!
    • Liniile de cod / sursa / script-ul(obligatoriu):  FS-ul "taietordelemne" by Jeleu.
    • Imagini / Video (optional):  ---
    • Ati incercat sa rezolvati singur?:Am incercat, dar nu-mi pot da seama. Stiu ca este o intrebare banala, dar vreau sa invat, daca ma intelegeti. :D
    • Daca este nevoie, va dau si FS-ul ..
  1. Multumesc de ajutor, dar uite cum este server.cfg .. 

    Totul este in regula, totul a mers normal, dar de azi a inceput sa imi apare off. 

     

    echo Executing Server Config...
    lanmode 0
    rcon_password parolaeparola
    maxplayers 50
    port 7777
    hostname SA-MP 0.3 Server
    gamemode0 GMarea 1
    filterscripts star
    announce 1
    plugins sscanf streamer nativechecker
    query 1
    weburl www.sa-mp.com
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 10
    logtimeformat [%H:%M:%S]
  2. Problema intalnita (descriere): Ok, deci .. Dupa ce dau compile totul e ok, fara buguri, fara nici o altfel de problema. Dau dublu click pe samp-server.exe sa verific daca am facut cum trebuie in pawno, mi se deschide, totul decurge ok, dar cand sa dau la samp sa vad serverul imi zice ca e off, nu merge. APP : Pana ieri a mers totul ok, verificam fara nici o treaba, dar azi nu stiu ce are. Are cineva vreo idee? :|
    Ero(area / rile) / warning-(ul / urile): Fara erori la pawno. Erori la calculator, banuiesc.
    Liniile de cod / sursa / script-ul(obligatoriu): -
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Da, dar nu-mi pot imagina de la ce este ..

  3. Problema intalnita (descriere): Ok. Am un GameMode. Nu e al meu, dar vreau sa-l fac catusi de cat, iar imi da o erroare. Adica totul functioneaza la Compilare, etc, dar nu merge o comanda pe server. 

    Scriu "/d text" si nu-mi apare nimic, ca si cum nu ar exista comanda, dar in GM o am si daca scriu doar "/d" imi apare "(/d)epartaments"

    Comanda /d este acea comanda care departamentele pot comunica intre ele.

    Ero(area / rile) / warning-(ul / urile): Nici o eroare.

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

            //----------------------------------[departments]-----------------------------------------------
       if(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                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;
                result[0] = toupper(result[0]);
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/d)epartments [department chat]");
                    return 1;
                }
                if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Chief %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Captain %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Lieutenant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Sergeant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Officer %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Officer %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Assistant Director in Charge %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent in Charge %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Special Agent %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Special Agent Trainee %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Professional Staff %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Intern %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** General %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Lieutenant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Captain %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Major %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Sergeant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Private %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Private %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "   You are not part of a Team !");
                    return 1;
                }
            }
            return 1;
        }

    Imagini / Video (optional): Nu cred ca este nevoie, sunt datele mai sus

    Ati incercat sa rezolvati singur?: Am incercat, dar nu-mi pot da seama. Sunt la inceput, incepator si mna .. Va rog ajutor .. :D

  4.         //----------------------------------[departments]-----------------------------------------------
       if(strcmp(cmd, "/departments", true) == 0 || strcmp(cmd, "/d", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                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;
                result[0] = toupper(result[0]);
                if(!strlen(result))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/d)epartments [department chat]");
                    return 1;
                }
                if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Chief %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Captain %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Lieutenant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Sergeant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Officer %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Cadet %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Officer %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Director %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Assistant Director in Charge %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Special Agent in Charge %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Special Agent %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Special Agent Trainee %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Professional Staff %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Intern %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
                {
                    if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** General %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Lieutenant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Captain %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Major %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Sergeant %s: %s, over. **", sendername, result); }
                    else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Private %s: %s, over. **", sendername, result); }
                    else
                    {
                        format(string, sizeof(string), "** Private %s: %s, over. **", sendername, result);
                    }
                    SendTeamMessage(2, COLOR_DEPART2, string);
                    SendTeamMessage(1, COLOR_DEPART2, string);
                    printf("%s", string);
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "   You are not part of a Team !");
                    return 1;
                }
            }
            return 1;
        }

     

     

    OK. Comanda merge, dar cand scriu "/d TEST" nu merge, dar daca dau doar "/d" imi apare "(/d)epartaments [text] " 

    Daca stie cineva, va rog ajutati-ma! :)

  5. Salut sa:mp.ro,

    Dupa ce editez/schimb/etc un gamemode dau compile, si merge totul bine si imi apare asta

    Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase

    dar

    nu inteleg de ce AMX file nu se salveaza, de exemplu PWN file are 56K si AMX file are 0K (k- kylobity) ....

    Ma poate ajuta cineva va rog?

  6. Salut sa:mp.ro,

    Dupa ce editez/schimb/etc un gamemode dau compile, si merge totul bine si imi apare asta

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    dar

    nu inteleg de ce AMX file nu se salveaza, de exemplu PWN file are 56K si AMX file are 0K (k- kylobity) ....

    Ma poate ajuta cineva va rog?

  7. Salut SA:MP.ro

    Sa zicem ca eu am creat un GameMode, deocamdata este Grand Lancery si am bagat cateva comenzi...

    1.Cum fac rost sau de unde mai exact dau de

    - filterscripts

    - gamemodes(la acest lucru stiu!)

    - include(la acest lucru trebuie luate include-urile din GM? EX: # include xxxxxx ?)

    - npcmodes

    - plugins

    - scriptfiles(ban files, kick files, log files, users, etc)

    La astea poate cu putin ajutor m-as putea descurca, dar la ce urmeaza nustiu sigur :| ...

    - announce

    - samp (ban file)

    - samp licenses(cred ca stiu despre aceasta)

    - SA-MP NPC

    - SA MP server (samp dedicate server)

    - server.cfg

    - server-log

    - server readme(cred ca stiu desprea aceasta)

    Deci cum v-am spus vreau sa ma apuc singur de un GM, dar habar n-am de unde pot face rost de ele, :| , nu vreau mura-ngura dar singur nu pot deloc, sunt incepator, poate daca voi invata, la randul meu voi ajuta si eu ... va rog cat de repede :)

    2. Cand adaug ceva in PWN file(gamemode) dau compile si se salveaza cum trebuie si PWN si AMX, dar in AMX este gol ... de ce nu se salveaza in AMX ? :| ...

  8. Salut SA:MP.ro

    Nu-mi mergea sa dau compile, am cerut ajutorul tot de pe sa-mp.ro, am respectat cum a-ti zis 1.Descarc morphinc, 2.L-am bagat in Pawno/include.

    Dupa ce dau din nou compile imi deschide o fereastra si nu scrie nimic, +ca se blocheaza ...

    Ce sa fac? Dati-mi voi site-ul de unde sa-l descarc poate gresesc eu site-ul ! .... :(

    Sau dati-mi va rog Pawno normal ...

  9. Salut sa-mp.ro....  :-(

    Dupa ce scriptez/editez in gm, dau compile(sageata albastra) si imi apare intr-o fereastra aceasta:

    C:\DOCUME~1\IONUT&~1\Desktop\RAVEN'~1.3X\GAMEMO~1\larp.pwn(18) : fatal error 100: cannot read from file: "morphinc"

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    Si dupa ce i-es imi dispare AMX file, ramane doar PWN file ....... :(( :((

  10. Salut SA:MP.ro, sunt mixT, imi pare bine ca va cunosc...

    Nu cu mult timp in urma m-am inregistrat si eu, am vazut ca multi isi gasesc raspunsul la intrebarile lor, si am zis sa apelez si eu la voi....

    Am inceput sa scriptez cu un an in urma, iar de atunci ma chinui sa aflu raspunsul la intrebarea mea, dar nu gasesc nicaieri, si nu am de la cine invata, sper sa ma ajutati si pe mine, va raman recunoscator...

    1.Am un gamemod(GM) in care am modificat din EN in RO, am modificat numele serverului din joc(tutorial, etc) si defiecare data cand termin apas X din dreapta sus(pentru a inchide fereastra) si imi apare da ca sa se salveze. Se salveaza si cand sa intru in joc nu se schimba tot la fel, am verificat din nou in GM si tot la fel este cum am modificat eu....

    Daca stiti ce trebuie sa fac sa se salveze ce fac eu.

    2.Pentru a adauga masini NEpersonale stiu ca trebuie sa intru in joc sa i-au o masina care doresc eu si sa ma duc unde vreau si sa dau /save, imi scrie ca masina a fost salvata si DA imi apare in folder la san andreas user files dar de aici nu mai stiu....

    SA:MP.ro va raman recunoscator celor care macar ma invata sa fac asta.

    Am vazut ca nu dati la toti MURANGURA. Nu va cer sa-mi explicati tot, dar macar sa prind si eu ceva...

    Multumesc mult :X:D

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