Jump to content
  • 0

[ajutor]sistem pe mysql


Question

Posted
  • Adăugaţi cât mai multe detalii (în ce funcţie se întâmplă, la ce linie, cât de des se întâmplă, etc.):Salut!De curand am adaugat pe gm-ul meu un sistem nou pe mySQL.Poblema este ca da o eroare la o comanda,si nu-i pot da de cap(o aveti mai jos):
  • Adăugaţi mereu eroarea / erorile sau warning-ul / warning-urile.:
  • C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 017: undefined symbol "strdel"
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : warning 215: expression has no effect
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 001: expected token: ";", but found ")"
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : error 029: invalid expression, assumed zero
    C:\Users\bestm\Desktop\sa-mp server - Copy\pawno\include\a_mysql.inc(297) : fatal error 107: too many error messages on one line
  • Adăugaţi şi codul sursă pentru a va putea ajută (nu tot gamemode-ul / filterscript-ul).:
  • CMD:removegarage(playerid,params[])
    {
        if(!IsPlayerAdmin(playerid)) return 0;
        for(new i=0; i < garageCount+1; i++)
        {
            if(IsPlayerInRangeOfPoint(playerid, 3.0, gInfo[PosX], gInfo[PosY], gInfo[PosZ]))
            {
                new sql[128];
                format(sql,sizeof(sql),"DELETE FROM `garages` WHERE `UID`='%d'",gInfo[UID]);
                mysql_query(sql);
                format(gInfo[Owner],24,"REMOVED");
                gInfo[Owned] = -999;
                gInfo[Price] = -999;
                gInfo[Interior] = -999;
                gInfo[UID] = -999;
                gInfo[PosX] = -999;
                gInfo[PosY] = -999;
                gInfo[PosZ] = -999;
                gInfo[Locked] = -999;
                DestroyDynamic3DTextLabel(garageLabel);
                DestroyDynamicPickup(garagePickup);
                SendClientMessage(playerid, COLOR_SUCCESS, "You have removed this garage.");
                return 1;
            }
        }
        SendClientMessage(playerid, COLOR_ERROR,"Error: You're not near any garage.");
        return 1;
    }
Linia erorii:  }

giphy.gif.418e22646746f7065f229917bd9fae15.gif

5 answers to this question

Recommended Posts

  • 0
Posted
1 hour ago, Gireada said:

Ori ne arati a_mysql ori il descarci sil il suprascrii peste cel vechi.

Link a_mysql: http://pastebin.com/g58Yknrm

P.S:Eu am mai compilat alte gm-uri pe mysql si nu a dat erori...

giphy.gif.418e22646746f7065f229917bd9fae15.gif

Guest
This topic is now closed to further replies.
×
×
  • 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.