Jump to content

norton.

Membru
  • Posts

    75
  • Joined

  • Last visited

Posts posted by norton.

  1. Da mie mi se incarca, ati vazut ca acolo am un "printf" si cand deschide imi zice ca am 35 Turfs si atatea am. Dar nu mi se creeaza, trebuie sa mi se creeze dar nu se creeaza, cand intru pe server nu apar.

    La OnGameModeInit am pus:

    for(new i = 1; i < sizeof(TurfInfo); i++)
    	{
    	    Turfs = GangZoneCreate(TurfInfo[tMinX],TurfInfo[tMinY],TurfInfo[tMaxX],TurfInfo[tMaxY], TurfInfo[tNr], TurfInfo[tNrSize]);
    	}
    

    In MYSQL log totu e ok. -> Poza:

    Am dat si in jos si m-am uitat si scrie ca totu e OK

    DzPteVN.png

  2. Problema intalnita (descriere): Nu mi se incarca teritoriile.
    Ero(area / rile) / warning-(ul / urile): 0
    Liniile de cod / sursa / script-ul: Am pus:

    forward LoadTurfs();
    public LoadTurfs()
    {
        new tempp[124], TotalTurfs;
        cache_get_data(rows, fields);
        while(TotalTurfs < rows)
        {
            cache_get_row(TotalTurfs, 0, tempp), TurfInfo[TotalTurfs][tID] = strval(tempp);
            cache_get_row(TotalTurfs, 1, tempp), TurfInfo[TotalTurfs][tOwned] = strval(tempp);
            cache_get_row(TotalTurfs, 2, tempp), TurfInfo[TotalTurfs][tTime] = strval(tempp);
            cache_get_row(TotalTurfs, 3, tempp), TurfInfo[TotalTurfs][tMinX] = floatstr(tempp);
            cache_get_row(TotalTurfs, 4, tempp), TurfInfo[TotalTurfs][tMinY] = floatstr(tempp);
            cache_get_row(TotalTurfs, 5, tempp), TurfInfo[TotalTurfs][tMaxX] = floatstr(tempp);
            cache_get_row(TotalTurfs, 6, tempp), TurfInfo[TotalTurfs][tMaxY] = floatstr(tempp);
            cache_get_row(TotalTurfs, 7, tempp), TurfInfo[TotalTurfs][tNr] = strval(tempp);
            cache_get_row(TotalTurfs, 8, tempp), TurfInfo[TotalTurfs][tNrSize] = strval(tempp);
            TotalTurfs++;
        }
        printf("%d turfs loaded",TotalTurfs);
        return 1;
    }
    

    Si la 'ongamemodeinit' dupa conexiunea MYSQL am pus:

    mysql_function_query(handle, "SELECT * FROM `turfs`", true, "LoadTurfs", "");
    

    * Folosesc MYSQL R34

    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Da

  3. Salut, in samp cumpar o casa cu comanda /buyhouse imi ia bani tot ce trebuie dar cand ies din ea scrie catot este de vanzare nu se schimba pickupu ramane asa...Ea arata ca e de vanzare dar defapt este a mea. Nu scrie akolo Propietaru apare de vanzare

  4. Scuzati dar aceasta este comanda:

    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(gPlayerLogged[playerid] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, "  You havent logged in yet !");

                return 1;

            }

    if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)

    {

    SendClientMessage(playerid, COLOR_GRAD2, "  The OOC channel has been disabled by an Admin !");

    return 1;

    }

    if(PlayerInfo[playerid][pMuted] == 1)

    {

    SendClientMessage(playerid, TEAM_CYAN_COLOR, "  You can't speak, you have been silenced !");

    return 1;

    }

    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++;

    }

    for(new i=0; i<MAX_PLAYERS; i++)

    if(FindIP(result)) ///

    {

      new advertiser[MAX_PLAYER_NAME];

      GetPlayerName(playerid, advertiser, sizeof(advertiser));

      format(string, sizeof(string), "[Warning]: %s[iD: %d] face reclama ",advertiser,i);

      ABroadCast(COLOR_LIGHTRED,string,1);

      return 0;

    }

    result[idx - offset] = EOS;

    if(!strlen(result))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/o)oc [ooc chat]");

    return 1;

    }

    format(string, sizeof(string), "((Admin %s : %s ))",sendername, result);

    SendClientMessageToAll(COLOR_WHITE,string);

    printf("%s", string);

    }

    return 1;

    }

  5. Este un bug enervant...toti playeri pot sa vorbeasca pe /o ...cum pot lasa decat admini?

    COMANDA;

    if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if(PlayerInfo[playerid][pAdmin] > 0 )

            {

            if(gPlayerLogged[playerid] == 0)

            {

                SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");

                return 1;

            }

    if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)

    {

    SendClientMessage(playerid, COLOR_GRAD2, " The OOC channel has been disabled by an Admin !");

    return 1;

    }

    if(PlayerInfo[playerid][pMuted] == 1)

    {

    format(string, sizeof(string), "You can't speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

    return 1;

    }

    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: (/o)oc [ooc chat]");

    return 1;

    }

    if(PlayerInfo[playerid][pAdmin] == 0 && PlayerInfo[playerid][pHelper] == 0)

        {

        for(new i=0; i<MAX_ENTRY; i++)

    {

        if(!Swear[0]) continue;

    Cenzura(result,Swear);

    }

    }

                    if(anty(result))

    {

                new advertiser[MAX_PLAYER_NAME];

    GetPlayerName(playerid, advertiser, sizeof(advertiser));

    format(string, sizeof(string), "GL BOT: {FFFF00}%s a primit Kick cu motivul: Reclama pe /o",advertiser);

    SendClientMessageToAll(COLOR_RED,string);

    Kick(playerid);

    return 0;

    }

    format(string, sizeof(string), "{FFFFFF}(( %s: %s ))", sendername, result);

    OOCOff(COLOR_OOC,string);

    printf("%s", string);

    }

    }

    return 1;

    }

  6. Salut,La gm-ul lui DarkSone GameLife v1.6 dupa 2-3 zile apare un BUG...Mi se incurca idurile la masini...adika daca imi aiu 3 masini prima masina zice ca nu mai este a mea, daca iau un elegy si ii dau /v park se Transforma in NRG si tot asa...Cum pot rezolva asta?..Nu prea vreau sa schimb systemu de masini!

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