Jump to content

Style.

Membru
  • Posts

    17
  • Joined

  • Last visited

Posts posted by Style.

  1. Salutare, intampin o problema la crearea clan-ului, dupa ce am scris numele clan-ului si cand trebuie sa scriu clan tag-ul spre exemplu [EXE]Exemplu si scriu in dialog-ul acela [EXE] cu spatiu nu il mai seteaza la nume pentru ca nu este,  [EXE]Exemplu ci [EXE] Exemplu cu spatiu..

    if(dialogid == DIALOG_CHOOSECLANTAG)
        {
            if(response)
            {
                new other[128];
                if(strlen(inputtext) >= 2 && strlen(inputtext) <= 15)
                {
                    new clanname[25],strings[256];
                    mysql_real_escape_string(inputtext, clanname);
                    strcpy(ClanInfo[PlayerInfo[playerid][pClan]][cClanTag], clanname, sizeof(clanname));
                    mysql_format(SQL, strings, sizeof(strings), "UPDATE clans SET `clanTag`='%s' WHERE `clanID`='%d'", clanname, PlayerInfo[playerid][pClan]);
                    mysql_tquery(SQL,strings,"","");
                    format(strings, sizeof(strings), "Clan tag: %s.", clanname);
                    SendClientMessage(playerid, COLOR_GENANNOUNCE, strings);
                    mysql_format(SQL, strings, sizeof(strings), "SELECT * FROM `clans`");
                    mysql_tquery(SQL, strings, "LoadClanInfo", "");
                }
                else
                {
                    ShowPlayerDialog(playerid, DIALOG_CHOOSECLANTAG, DIALOG_STYLE_INPUT, "Clan tag", "Insert clan tag in the box below:\nMinimum 2 characters and maximum 15     characters.\n(You can't change it after that!)", "Ok", "");
                    return 1;
                }
            }
        }

    Am incercat ceva dar tot nu functioneaza,

    for(new i; i < strlen(inputtext); i++){	if(strfind(inputtext[i]," ", true) == 0)	{		inputtext[i] = '';	}}
    	

  2. Salut, cand dau restart la server primesc aceasta eroare nu stiu unde este problema :(, am incercat dar nu gasesc...

    ---> [ERROR] cache_get_field_content_int - invalid datatype

    Si cand sunt la login pe server primesc aceasta eroare, am cautat in DB si in gm si nu gasesc ceva gresit...

    ---> [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')

    Ma poate ajuta cineva? 

  3. [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SET `Virtual`='2' WHERE `ID`='2'' at line 1.

    [ERROR] CMySQLQuery::Execute[()] - (error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''14' at line 1.

    [ERROR] cache_get_field_content_int - invalid datatype.

    [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0').

    Le primesc pe gamemode-ul cel al lui Edison.

     

     

  4. Server log - http://pastebin.com/fLuvFY6c

    Iar in baza de date primesc foarte multe erori aproapte toate cu textul : 

    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey", data: "105"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey2", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey2", data: "106"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey3", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey3", data: "108"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey4", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey4", data: "110"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey5", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey5", data: "999"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey6", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey6", data: "999"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey7", connection: 1
    [20:34:59] [DEBUG] CMySQLResult::GetRowDataByName - row: '0', field: "Pcarkey7", data: "999"
    [20:34:59] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Pcarkey8", connection: 1
    [20:34:59] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Pcarkey8")

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