Szerző Téma: Itt kérdezz warningot/error -t!  (Megtekintve 124916 alkalommal)

Itt kérdezz warningot/error -t!
« Válasz #1320 Dátum: 2017. Január 10. - 22:51:12 »
0

forward Login(playerid, jelszo);
public Login(playerid, jelszo)
{
    if(cache_get_row_count() == 0)
    {
        SendClientMessage(playerid, -1, \"Rossz jelszó!\");
        Kick(playerid);
    }
    else
    {
        SendClientMessage(playerid, -1, \"Belépés sikeres!\");
        Belepve[playerid] = true;
        new nev[MAX_PLAYER_NAME], string[256];
        GetPlayerName(playerid, nev, sizeof(nev));
        format(string, sizeof(string), \"SELECT * FROM Jatekosok WHERE Nev = \'%s\' AND Jelszo = \'%s\'\", nev, jelszo);
        mysql_tquery(kapcsolat, string, \"JatekosBetoltese\", \"s\", playerid);
        
    }
}
forward JatekosBetoltese(playerid);
public JatekosBetoltese(playerid)
{
    Szint[playerid] = cache_get_row_int(0,2);
    JatekosSkin[playerid] = cache_get_row_int(0,5);
    Bankszamla[playerid] = cache_get_row_int(0,3);
    
    SpawnPlayer(playerid);
    SetPlayerSkin(playerid, JatekosSkin[playerid]);
    SendClientMessage(playerid, -1, \"Belépés sikeres!\");
}

 
Valamiért úgy tűnik mintha a JatekosBetoltese rész meg sem hívodna.

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1321 Dátum: 2017. Január 10. - 23:31:31 »
0

\"s\", playerid);

 
\"s\" helyett \"i\"

Itt kérdezz warningot/error -t!
« Válasz #1322 Dátum: 2017. Február 05. - 11:09:51 »
0
Sziasztok. Ezek mitől lehetnek?
 

error 017: undefined symbol \"FN\"
error 025: function heading differs from prototype
error 017: undefined symbol \"GetPlayerPoolSize\"
PAWNO\\pawno\\include\\a_mysql.inc(222) : error 017: undefined symbol \"Callback_Array\"
 PAWNO\\pawno\\include\\a_mysql.inc(219) : error 017: undefined symbol \"AMX_GetRelativeAddress\"

 
 

Nem elérhető MonKey

  • 125
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1323 Dátum: 2017. Február 05. - 12:28:56 »
0
Itt le van írva a hiba: http://alex-pastebin.esy.es/QHpsWrTT
« Utoljára szerkesztve: 2017. Február 05. - 13:01:11 írta MonKey »

Nem elérhető Query

Itt kérdezz warningot/error -t!
« Válasz #1324 Dátum: 2017. Február 11. - 15:26:58 »
0

D:\\GTA San Andreas\\pawno-hun\\mod.pwn(833) : error 017: undefined symbol \"AntiDeAMX\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(839) : error 017: undefined symbol \"AntiDeAMX\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(841) : error 017: undefined symbol \"ExtiBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(842) : error 017: undefined symbol \"IntiBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(843) : error 017: undefined symbol \"RendorSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(844) : error 017: undefined symbol \"SzereloSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(845) : error 017: undefined symbol \"MentosSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(846) : error 017: undefined symbol \"AdosSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(847) : error 017: undefined symbol \"TuzoltoSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(848) : error 017: undefined symbol \"MaffiaSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(849) : error 017: undefined symbol \"SurenyosSzefBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1217) : error 017: undefined symbol \"HazBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1224) : error 004: function \"UpdateTime\" is not implemented
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1238) : error 017: undefined symbol \"MilyenUzemAnyag\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1267) : error 017: undefined symbol \"vehicleFile\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1269) : error 017: undefined symbol \"LoadVehicle\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1278) : error 017: undefined symbol \"UzemanyagBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1286) : error 017: undefined symbol \"KasszakBetolt\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1298) : error 017: undefined symbol \"split\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1319) : error 017: undefined symbol \"KasszaMent\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1320) : error 017: undefined symbol \"UzemanyagMent\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1329) : error 017: undefined symbol \"HazMent\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1343) : error 017: undefined symbol \"SaveVehicle\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(1344) : error 017: undefined symbol \"ReloadVehicle\"
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(2063) : error 004: function \"Nevekki\" is not implemented
D:\\GTA San Andreas\\pawno-hun\\mod.pwn(2064) : error 017: undefined symbol \"IsRolePlayName\"
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
26 Errors.

 
Sziasztok megoldás van?

Nem elérhető ugrobolha

  • 29
  • Discord: barnabas#2158
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1325 Dátum: 2017. Március 20. - 22:47:00 »
0

Car_Save(carid)
{
    static
        query[900];
    format(query, sizeof(query), \"UPDATE `kocsik` SET `kocsiModel` = \'%d\', `kocsiTulaj` = \'%d\', `kocsiPosX` = \'%.4f\', `kocsiPosY` = \'%.4f\', `kocsiPosZ` = \'%.4f\', `kocsiPosR` = \'%.4f\', `kocsiSzin1` = \'%d\', `kocsiSzin2` = \'%d\', `kocsiZar` = \'%d\', `kocsiFrakcio` = \'%d\' WHERE `kocsiID` = \'%d\'\",
        KocsiData[carid][kocsiModel],
        KocsiData[carid][kocsiTulaj],
        KocsiData[carid][kocsiPos][0],
        KocsiData[carid][kocsiPos][1],
        KocsiData[carid][kocsiPos][2],
        KocsiData[carid][kocsiPos][3],
        KocsiData[carid][kocsiSzin1],
        KocsiData[carid][kocsiSzin2],
        KocsiData[carid][kocsiZar],
        KocsiData[carid][kocsiFrakcio]
    );
    return mysql_tquery(kapcsolat, query);
}


[22:39:15 03/20/17] [DEBUG] mysql_tquery - connection: 1, query: \"INSERT INTO `kocsik` (`kocsiModel`) VALUES(0)\", callback: \"OnCarCreated\", format: \"d\"
[22:39:15 03/20/17] [DEBUG] CMySQLQuery::Execute[OnCarCreated] - starting query execution
[22:39:15 03/20/17] [DEBUG] CMySQLQuery::Execute[OnCarCreated] - query was successfully executed within 4.871 milliseconds
[22:39:15 03/20/17] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[22:39:23 03/20/17] [DEBUG] mysql_tquery - connection: 1, query: \"UPDATE `kocsik` SET `kocsiModel` = \'0\', `kocsiTulaj` = \'0\', `koc\", callback: \"(null)\", format: \"(null)\"
[22:39:23 03/20/17] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[22:39:23 03/20/17] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 0.277 milliseconds
[22:39:23 03/20/17] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving

 
 

Nem elérhető whadez

  • 719
  • DEFEATER
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1326 Dátum: 2017. Március 20. - 23:02:33 »
+1

WHERE `kocsiID` = \'%d\'

 
Ennek nem adtál értéket.

Nem elérhető ugrobolha

  • 29
  • Discord: barnabas#2158
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1327 Dátum: 2017. Március 20. - 23:13:31 »
0
Köszi, sajnos így sem ment

Nem elérhető whadez

  • 719
  • DEFEATER
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1328 Dátum: 2017. Március 20. - 23:14:18 »
0
printf(query);
 
Mutasd az outputot.
 
Továbbá egy SQL logot.

Nem elérhető ugrobolha

  • 29
  • Discord: barnabas#2158
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1329 Dátum: 2017. Március 20. - 23:18:39 »
0

[23:12:38 03/20/17] [DEBUG] CMySQLResult::~CMySQLResult() - deconstructor called
[23:12:40 03/20/17] [DEBUG] mysql_tquery - connection: 1, query: \"INSERT INTO `kocsik` (`kocsiModel`) VALUES(0)\", callback: \"OnCarCreated\", format: \"d\"
[23:12:40 03/20/17] [DEBUG] CMySQLQuery::Execute[OnCarCreated] - starting query execution
[23:12:40 03/20/17] [DEBUG] CMySQLQuery::Execute[OnCarCreated] - query was successfully executed within 3.488 milliseconds
[23:12:40 03/20/17] [DEBUG] CMySQLResult::CMySQLResult() - constructor called
[23:12:46 03/20/17] [DEBUG] mysql_tquery - connection: 1, query: \"UPDATE `kocsik` SET `kocsiModel` = \'0\', `kocsiTulaj` = \'0\', `koc\", callback: \"(null)\", format: \"(null)\"
[23:12:46 03/20/17] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[23:12:46 03/20/17] [DEBUG] CMySQLQuery::Execute[] - query was successfully executed within 3.332 milliseconds
[23:12:46 03/20/17] [DEBUG] CMySQLQuery::Execute[] - no callback specified, skipping result saving


[23:15:00] UPDATE `kocsik` SET `kocsiModel` = \'0\', `kocsiTulaj` = \'0\', `kocsiPosX` = \'0.0000\', `kocsiPosY` = \'0.0000\', `kocsiPosZ` = \'0.0000\', `kocsiPosR` = \'0.0000\', `kocsiSzin1` = \'0\', `kocsiSzin2` = \'0\', `kocsiZar` = \'0\', `kocsiFrakcio` = \'0\' WHERE `kocsiID` = \'7\'

 
 

Nem elérhető whadez

  • 719
  • DEFEATER
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1330 Dátum: 2017. Március 20. - 23:27:27 »
0

[23:12:40 03/20/17] [DEBUG] mysql_tquery - connection: 1, query: \"INSERT INTO `kocsik` (`kocsiModel`) VALUES(0)\", callback: \"OnCarCreated\", format: \"d\"

 
Ezt is átküldhetnéd.

Nem elérhető ugrobolha

  • 29
  • Discord: barnabas#2158
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1331 Dátum: 2017. Március 21. - 17:04:32 »
0

Car_Create(ownerid, modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, type = 0)
{
    for (new i = 0; i != MAX_DYNAMIC_CARS; i ++)
{
   if (!KocsiData[kocsiLetezik])
         {
             if (color1 == -1)
                 color1 = random(127);
      if (color2 == -1)
          color2 = random(127);
             KocsiData[kocsiLetezik] = true;
            KocsiData[kocsiModel] = modelid;
            KocsiData[kocsiTulaj] = ownerid;
            KocsiData[kocsiPos][0] = x;
            KocsiData[kocsiPos][1] = y;
            KocsiData[kocsiPos][2] = z;
            KocsiData[kocsiPos][3] = angle;
            KocsiData[kocsiSzin1] = color1;
            KocsiData[kocsiSzin2] = color2;
            KocsiData[kocsiZar] = false;
            KocsiData[kocsiFrakcio] = type;
            KocsiData[kocsiJarmu] = CreateVehicle(modelid, x, y, z, angle, color1, color2, -1, -1);
            mysql_tquery(kapcsolat, \"INSERT INTO `kocsik` (`kocsiModel`) VALUES(0)\", \"OnCarCreated\", \"d\", i);
            return i;
   }
}
return -1;
}

 
 

Nem elérhető ugrobolha

  • 29
  • Discord: barnabas#2158
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1332 Dátum: 2017. Március 21. - 20:17:37 »
0
Újraírtam az egészet, most ez a baja:
 

SaveVehicle(vehicleid) {
    if(!Iter_Contains(ServerVehicles, vehicleid)) return 0;
    format(vInfo[vehicleid][vehName], 16, GetVehicleName(vInfo[vehicleid][vehModel]));
    GetVehiclePos(vInfo[vehicleid][vehSessionID], vInfo[vehicleid][vehX], vInfo[vehicleid][vehY], vInfo[vehicleid][vehZ]);
    GetVehicleZAngle(vInfo[vehicleid][vehSessionID], vInfo[vehicleid][vehA]);
    new query[500];
    mysql_format(kapcsolat, query, sizeof(query), \"UPDATE `Vehicles` SET `vehName` = \'%e\', `vehOwner` = \'%e\', `vehLock` = %i, `vehModel` = %i,\\
    `vehPlate` = \'%e\', `vehMod_1` = %i, `vehMod_2` = %i, `vehMod_3` = %i, `vehMod_4` = %i, `vehMod_5` = %i, `vehMod_6` = %i, `vehMod_7` = %i,\\
    `vehMod_8` = %i, `vehMod_9` = %i, `vehMod_10` = %i,\\
`vehMod_11` = %i, `vehMod_12` = %i, `vehMod_13` = %i,\\
`vehMod_14` = %i,\\
`vehColorOne` = %i,\\
    `vehColorTwo` = %i, `vehX` = %f, `vehY` = %f, `vehZ` = %f, `vehA` = %f WHERE `vehID` = %d\", vInfo[vehicleid][vehName], vInfo[vehicleid][vehOwner],
    vInfo[vehicleid][vehLock], vInfo[vehicleid][vehModel], vInfo[vehicleid][vehPlate], vInfo[vehicleid][vehMod][0], vInfo[vehicleid][vehMod][1], vInfo[vehicleid][vehMod][2],
    vInfo[vehicleid][vehMod][3], vInfo[vehicleid][vehMod][4], vInfo[vehicleid][vehMod][5], vInfo[vehicleid][vehMod][6], vInfo[vehicleid][vehMod][7], vInfo[vehicleid][vehMod][8],
    vInfo[vehicleid][vehMod][9], vInfo[vehicleid][vehMod][10], vInfo[vehicleid][vehMod][11], vInfo[vehicleid][vehMod][12], vInfo[vehicleid][vehMod][13], vInfo[vehicleid][vehColorOne],
    vInfo[vehicleid][vehColorTwo], vInfo[vehicleid][vehX], vInfo[vehicleid][vehY], vInfo[vehicleid][vehZ], vInfo[vehicleid][vehA], vInfo[vehicleid][vehID]);
    mysql_tquery(kapcsolat, query);
    return 1;
}

 
 
 

rp.pwn(1585) : error 075: input line too long (after substitutions)
rp.pwn(1586) : error 037: invalid string (possibly non-terminated string)
rp.pwn(1586) : error 017: undefined symbol \"UPDATE\"
rp.pwn(1586) : error 029: invalid expression, assumed zero
rp.pwn(1586) : fatal error 107: too many error messages on one line

 
 

Nem elérhető Query

Itt kérdezz warningot/error -t!
« Válasz #1333 Dátum: 2017. Június 18. - 11:17:57 »
0

warning 235: public function lacks forward declaration (symbol \"OnPlayerWeaponShot\")
 error 017: undefined symbol \"BULLET_HIT_TYPE_PLAYER\"
 error 017: undefined symbol \"BULLET_HIT_TYPE_VEHICLE\"
 error 025: function heading differs from prototype
 warning 203: symbol is never used: \"strtok\"

 
Sziasztok mik lehetnek a gondok ?

Nem elérhető Query

Itt kérdezz warningot/error -t!
« Válasz #1334 Dátum: 2017. Augusztus 05. - 12:27:41 »
0

D:\\gta szerver\\pawno22\\include\\mSelection.inc(72) : warning 219: local variable \"ItemAmount\" shadows a variable at a preceding level
D:\\gta szerver\\pawno22\\include\\mSelection.inc(84) : warning 219: local variable \"ItemAmount\" shadows a variable at a preceding level

 
Mi lehet a gond ?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal