Jump to content

GiGiMuScHi

Membru
  • Posts

    108
  • Joined

  • Last visited

    Never

Posts posted by GiGiMuScHi

  1. Eu nu am

    public IsAnOwnableCar(vehicleid)

    {

    if(vehicleid >= 271 && vehicleid <= 425) { return 1; }

    //modifica 271 cu id-u primei masini.

    //modifica 425 cu id-u ultimei masini

    return 0;

    }

    Eu am asa:

    public IsAnOwnableCar(carid)

    {

    for(new i = 1; i < sizeof(ownedcar); i++)

    {

        if(carid == ownedcar) return 1;

    }

    return 0;

    }

    Oare sa inlocuies ce am eu cu ce mioai dat u?

  2. Salutare am o erroare si nu stiu cum sa o rezolv:

    C:\Documents and Settings\Administrator\My Documents\blodzrp\bloodzrp.pwn(18474) : error 047: array sizes do not match, or destination array is too small

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    Linia 18474:

    x_nr = strtok(cmdtext, idx);

    Poate va ajuta cu ceva:

            new x_nr[64];

            x_nr = strtok(cmdtext, idx);

            if(!strlen(x_nr))

            {

                SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");

                SCM(playerid, COLOR_WHITE, "Available names: buy ,park, lock, sell, sellto, color, tow, locate, plate, tunning, paintjob");

                return 1;

            }

  3. Cum rezolv warningurile astea

    C:\Documents and Settings\Administrator\Desktop\[www.fisierulmeu.ro] Xtr-Zon Teddy23\pawno\include\JunkBuster.inc(3240) : warning 201: redefinition of constant/macro (symbol "OnPlayerEnterRaceCheckpoint")

    C:\Documents and Settings\Administrator\Desktop\[www.fisierulmeu.ro] Xtr-Zone Teddy23\gamemodes\Teddy23.pwn(10989) : warning 209: function "JB_OnPlayerConnect" should return a value

  4. Cum rezolv warninguls i erroarea acesta?

    NU mia stiu

    C:\Documents and Settings\Administrator\Desktop\[www.fisierulmeu.ro] Xtr-Zone Teddy23\gamemodes\Teddy23.pwn(10989) : warning 209: function "JB_OnPlayerConnect" should return a value

    C:\Documents and Settings\Administrator\Desktop\[www.fisierulmeu.ro] Xtr-Zone Teddy23\gamemodes\Teddy23.pwn(13944) : error 021: symbol already defined: "Streamer_OnPlayerEnterRaceCP"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

  5. Cum scap de aceata erroare:

    C:\Documents and Settings\Administrator\Desktop\blodzrp\bloodzrp.pwn(18474) : error 047: array sizes do not match, or destination array is too small

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    Linia 18474 este:

            x_nr = strtok(cmdtext, idx);

    Mai multe detalii de la aceasta linie:

            new x_nr[64];

            x_nr = strtok(cmdtext, idx);

            if(!strlen(x_nr))

            {

                SCM(playerid, COLOR_WHITE, "HINT: (/v)ehicle [name]");

                SCM(playerid, COLOR_WHITE, "Available names: buy ,park, lock, sell, sellto, color, tow, locate, plate, tunning, paintjob");

                return 1;

            }

  6. Am o problema cu cars.cfg.Cand adug cars.cfg masinile de dactiuni spawn DMv si altele se dau peste cap.Daca scot Cars.cfg totul merge perfect.Nu stiu cum sa rezolv bugul acesta cu CArs.cfg.Cars-ul este de la masini personale.ma puteti ajuta va rog eu.

  7. Am un nou gamemodes.Eu am ip static si pot tine servere deschise si acest gamemodes pe care il am merge sa il pornesc la mn in pc.Dar cand pui acest server pe host nu porneste.Uitati ce imi arata:

    ----------

    Loaded log file: "server_log.txt".

    ----------

    SA-MP Dedicated Server

    ----------------------

    v0.3c R2, ©2005-2011 SA-MP Team

    [22:07:01]

    [22:07:01] Server Plugins

    [22:07:01] --------------

    [22:07:01]  Loaded 0 plugins.

    [22:07:01] I couldn't load any gamemode scripts. Please verify your server.cfg

    [22:07:01] It needs a gamemode0 line at the very least.

    Am vb cu cei de la host si miau spus sa pui moduri sau patchuri pt linux nu pt windows.Deci pot sa rezolv aceasta problema?

  8. Am si eu o intrebare.La factiunea TCC de exemplu.Pe mini-harta este un patrat rosu adica cat tine tcc de mare si un player intra in parametrul acela marcat ii da respawn indiferent de pozitia lui adica da e deasupra tcc daca ii langa el ii da respawn automat.Doar la membri factiunii nu le da respawn.As dori sa fac si eu aceasta chestie.Ma poate ajuta cineva?

  9. Salut am adugat pe server un sistem de tuning luat dupa un alt server si imi da 26 de errori:

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3746) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3750) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3754) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3758) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3762) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3774) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3778) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3782) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3786) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3790) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3802) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3806) : error 004: function "PlayerToPoint" is not implemented

    C:\Documents and Settings\Administrator\My Documents\My Videos\eGamer.pwn(3810) : error 004: function "PlayerToPoint" is not implemented

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

    26 Errors.

    Am adaugat :

    #define PTP PlayerToPoint

    forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

    Ma puteti ajuta?

  10. Deci am cread textdarwn-ul merge la mn in pc atata cand il pun pe host nu merge cum nici nu ar exista acel textdrawn.Acuma ai inteles?Pur si simplu nu merge nu il citeste am crezut ca ii din plugin dar nu e nu stiu din ce ar putea fi.Avezti vreo idee?

  11. Am un textdrawn care arata cati playeri sant online pe server.Problema ii ca daca il bag pe host nu merge.Daca il bag in pc la mn merge.Si am facut si cateva porti la taxi Lspd, si la LSPD portile alea 2 nu mi le citeste si in pc merg.Si nu stiu care ii problema.Ma poate ajuta careva?

  12. Am erroare al copilare.

    Nu stii cum sa o rezolv.

    C:\Documents and Settings\Administrator\Desktop\gamemodes\eGamer.pwn(11920) : warning 213: tag mismatch

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    Header size:          10900 bytes

    Code size:          2081092 bytes

    Data size:          6947048 bytes

    Stack/heap size:      16384 bytes; estimated max. usage=5184 cells (20736 bytes)

    Total requirements: 9055424 bytes

    1 Warning.

  13. Am o problema la /uninvite.daca un lider da uninvite si alt lider incearca sa il bage in factiune zice  "That player is in a Faction/Family/Punished!".Ma puteti ajta?

    Uitati si comanda /uninvite:

    //----------------------------------[uNINVITE]------------------------------------------------

    if(strcmp(cmd, "/uninvite", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: /uninvite [1 with Fpunish/0 without Fpunish] [playerid/PartOfName]");

    return 1;

    }

    new x_nr;

    new para1;

    x_nr = strvalEx(tmp);

    tmp = strtok(cmdtext, idx);

    para1 = ReturnUser(tmp);

      if(x_nr == 0)

    {

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_WHITE, "Comanda: /uninvite 0 [playerid/PartOfName]");

    return 1;

    }

    if (PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pAdmin] >= 5 )

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

        if (PlayerInfo[para1][pMember] > 0 && ((PlayerInfo[para1][pMember] == PlayerInfo[playerid][pLeader]) || (PlayerInfo[playerid][pAdmin] >= 5)))

        {

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

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

    printf("AdmCmd: %s has uninvited %s.", sendername, giveplayer);

    format(string, sizeof(string), "* You have been kicked from a Family / Police Force, by Leader %s.", sendername);

    SendClientMessage(para1, COLOR_LIGHTRED, string);

    SendClientMessage(para1, COLOR_LIGHTBLUE, "* You are now a Civilian again.");

                    gTeam[para1] = 3;

    PlayerInfo[para1][pTeam] = 3;

    PlayerInfo[para1][pMember] = 0;

    PlayerInfo[para1][pRank] = 0;

    PlayerInfo[para1][pFwarn] = 0;

    PlayerInfo[para1][pChar] = 0;

    PlayerInfo[para1][pPunish] = 0;

    new rand = random(sizeof(CIV));

    SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);

    PlayerInfo[para1][pModel] = CIV[rand];

    MedicBill[para1] = 0;

    SpawnPlayer(para1);

    format(string, sizeof(string), "  You have kicked %s from his Family / Police Force.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    }

    else

    {

        format(string, sizeof(string), "%s isn't in your faction.You cannot uninvite him.", giveplayer);

    SendClientMessage(playerid, COLOR_GRAD1, string);

    }

    }

    }//not connected

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "You are not autorized to use this command!");

    }

    }

    if(x_nr == 1)

    {

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_WHITE, "Comanda: /uninvite 1 [playerid/PartOfName]");

    return 1;

    }

    if (PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pAdmin] >= 5 )

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

        if (PlayerInfo[para1][pMember] > 0)

        {

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

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

    printf("AdmCmd: %s has uninvited %s.", sendername, giveplayer);

    format(string, sizeof(string), "* You have been kicked from a Family / Police Force, by Leader %s.", sendername);

    SendClientMessage(para1, COLOR_LIGHTBLUE, string);

    SendClientMessage(para1, COLOR_LIGHTBLUE, "* You are now a Civilian again.");

                    gTeam[para1] = 3;

    PlayerInfo[para1][pTeam] = 3;

    PlayerInfo[para1][pMember] = 0;

    PlayerInfo[para1][pRank] = 0;

    PlayerInfo[para1][pFwarn] = 0;

    PlayerInfo[para1][pChar] = 0;

    PlayerInfo[para1][pPunish] = 20;

    new rand = random(sizeof(CIV));

    SetSpawnInfo(para1, gTeam[para1], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);

    PlayerInfo[para1][pModel] = CIV[rand];

    MedicBill[para1] = 0;

    SpawnPlayer(para1);

    format(string, sizeof(string), "  You have kicked %s from his Family / Police Force.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    }

    }

    }//not connected

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "You are not autorized to use this command!!");

    }

    }

    }

    return 1;

    }

    //----------------------------------[uNINVITE]------------------------------------------------

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