Jump to content

Oly

Membru
  • Posts

    114
  • Joined

  • Last visited

Posts posted by Oly

  1. E vreo posibilitate sa vad la ce linie din script primesc erori mysql? De exemplu am urmatoarea eroare de 8 ori dar nu stiu de la ce linii provine

     

    CMySQLResult::GetRowDataByName() ERROR invalid row index ('0')

     

    Cum imi pot da seama?

  2. Primesc in mysql_logs erorile astea:

    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:27] [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 ''' at line 1
    [16:27:27] [WARNING] cache_get_row_count - no active cache
    [16:27:27] [WARNING] CMySQLHandle::DeleteSavedResult - invalid result id ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    [16:27:32] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('0')
    
    

    Cum imi dau seama la ce linii apar erorile?

     

  3. Cum pot face ca aceasta comanda sa mearga doar in intervalul orar : 20:00 - 6:00 ! Adica de la 8 seara pana la 6 dimineata? Ma ajuta cineva?

    if(strcmp(cmd, "/subventie", true) == 0)
    	{
    		if(IsPlayerConnected(playerid))
    		{
    		    if(PlayerToPoint(3.0, PlayerToPoint(3.0, playerid, 2674.8925,2021.3578,14.8203))
    			{
    			    if(health >= 75)
    			    {
    			        GivePlayerMoney(playerid, 5000);
    			        GameTextForPlayer(playerid, "Ai primit:~r~5.000~g~$", 5000, 1);
    				}
    				else
    				{
    					GivePlayerMoney(playerid, -3);
    					GameTextForPlayer(playerid, "Ai fost taxat cu~r~3~g~$ caci ai incercat sa pagubesti statul!", 5000, 1);
    				}
    			}
    			else
    			{
    			    SendClientMessage(playerid, COLOR_GRAD1,"Nu te aflii la locul unde poti lua subventii!.");
    			    return 1;
    			}
    		}
    		return 1;
    	}

  4. am un server si de la un timp imi dispar textdrawurile.

    vreau sa zic ca il deschid si totul merge bine dar dupa cateva ore imi dispar textdrawurile si infoboxurile sau se dubleaza si se suprapun.nu pot sa inteleg care e problema help

    !

  5. J:\servere\GludX\GludX\pawno\include\Streamer.inc(285) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")

    J:\servere\GludX\GludX\pawno\include\Streamer.inc(307) : warning 201: redefinition of constant/macro (symbol "OnPlayerDisconnect")

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(16391) : warning 202: number of arguments does not match definition

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(21182) : warning 235: public function lacks forward declaration (symbol "HBroadCast")

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(23033) : warning 219: local variable "playermoney" shadows a variable at a preceding level

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(62159) : warning 235: public function lacks forward declaration (symbol "ResetBan")

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(62163) : warning 235: public function lacks forward declaration (symbol "ResetKick")

    J:\servere\GludX\GludX\GAMEMO~1\glrp.pwn(65723) : warning 203: symbol is never used: "PlayerPos"

    vreau sa rezolv warningurile astea.de la ce ar putea fi si ce pot face?

  6. am modul forteam si mereu iau crash in unele locuri!adica knd trec prin unele locuri imi arata warninguri in chat si dupa iau crash si asta se intampla numai in LS.chiar nu am ideie de ce primesc crash si eu si playeri mei.ajutoooor!!!

  7. salut.am luat sistemul lui im_bank si am o mare problema :( folosesc comanda /acreatecar pentru a adauga masini si primele 11 masini create sunt bune dar de la a 12-a masina apare un bug. cand folosesc comanda /acreatecar se creaza masini incepand de la id : 295 iar cand ajung la 307 apare bug pentru ca in gamemode masina cu id 307 este setata pentru factiune. eu am masini in gamemode pana la id 324.Am trecut si in filterscript la linia "carsonserver="numarulmasinilordingm+1" si degeaba.cum pot sa modific ca atunci cand folosesc comanda /acreatecar masinile sa inceapa sa se creeze de la id 325 incolo? va rog ajutor

  8. Am si eu o problema cu sistemul "carownership a lui Im_Bank" ! Am adaugat masini in masini.cfg dar aceste masini isi inverseaza id-urile cu cele din Gamemode si devin masini de factiuni. Am vazut intr-un topic sa adaug la "Public Ongamemodeinit" linia :

    SendRconCommand( "loadfs carownership" ); // carownership

    Am adaugat si aceasta linie,am scos din server.cfg linia filterscripts carownership , dar tot raman inversate id-urile? Ce as putea face ?

  9. am o mare problema.de ceva timp incerc sa schimb stilul de fuga de pe server si sa il pun pe cel normal.Nu vreau sa fac o comanda de walkstyle ci toti playerii inregistrati sa fuga normal.acum fug in reluare :(( ce linie sa caut in gm ca sa o scot?

  10. am o problema in legata de conturi. la inceput,login box-ul era la "public onplayerconnect" insa l-am facut la "public onplayerrequestclass" pentru a putea pune fundal+muzica. Totul bine si frumos pana am observat ca ma inregistrez,se salveaza contul dar daca intru pe server si scriu parola gresit,cand dau relog trebuie sa ma inregistrez iar.

    Mai explicit : daca vreau sa ma loghez si scriu o parola gresita,dupa ce voi intra urmatoarea tura,trebuie sa ma inregistrez iar.De ce se sterge contul cand scriu o parola gresita? Ce pot sa fac?

  11. nu am nimic in alta parte pentru ca apare fundalul de la client cel cu plaja. Cand fac asta cu onplayerrequest imi apare doar la inregistrare dupa ce aleg o parola si imi cere sa ma loghez doar atunci imi apare fundalul care il vreau eu.Eu vreau sa apara mereu si la login si la register

  12. pai am salvat urmatoarele coordonate cu classmaker :

    [pawn]SetPlayerPos(playerid, 2019.849121, 1343.078125, 10.812978);

    SetPlayerFacingAngle(playerid, 270.089508);

    SetPlayerCameraLookAt(playerid, 2019.849121, 1343.078125, 10.812978);

    SetPlayerCameraPos(playerid, 2019.849121 + (25 * floatsin(-270.089508, degrees)), 1343.078125 + (25 * floatcos(-270.089508, degrees)), 10.812978);[/pawn]

    dupa ce am salvat aceste coordonate le-am pus la public onplayerrequestclass dar tot nu imi apare noul fundal cand ma conectez pe server.Imi puteti combina voi coordonatele cu onplayerrequestclass ca sa vad unde gresesc? mai jos am pus public onplayerrequestclass

    [pawn]public OnPlayerRequestClass(playerid, classid)

    {

       

    new string[128];

    PlayerInfo[playerid][pModel] = Peds[classid][0];

    if (RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)

    {

    ClearChatbox(playerid, 10);

    format(string, sizeof(string), "Bun venit pe server pe versiunea %s", SCRIPT_VERSION);

    SendClientMessage(playerid, COLOR_YELLOW, string);

    SendClientMessage(playerid, COLOR_YELLOW2, " ");

                    SetPlayerVirtualWorld(playerid, 0);

                    SetPlayerInterior(playerid, 0);

    //PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);

    PlayerInfo[playerid][pModel] = Peds[classid][0];

    SetPlayerTeamFromClass(playerid,classid);

    }

    else SpawnPlayer(playerid);

    return false;

    }[/pawn]

  13. pai stiu ca trebuie sa incerc cu ce mi-ai spus tu dar nu stiu de unde fac rost de coordonate. Si nu cred ca ai inteles ce vreau sa schimb defapt de nu stii tu desprece vorbesc :) Ma refer cand apare login box sa fie pe fundal o incapere sau ce vreau eu sa pun

  14. Salut.De ceva timp incerc sa schimb fundalul cand apare login box sau register box.Ma refer ca atunci cand te conectezi pe server pe fundal e plaja privita de sus si vreau sa pun altceva in schimbul ei atunci cand apare login boxul si registeru.Problema e ca nu stiu cum pot salva acele coordonate ale camerei + ca nu stiu unde trebuiesc trecute pentru a schimba

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