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

Itt kérdezz warningot/error -t!
« Válasz #1230 Dátum: 2016. Július 15. - 17:31:13 »
0 Show voters
error 025 function heading differs from prototype

 


public OnPlayerGiveDamage(playerid,damagedid,Float:amount,weaponid,bodypart)
{
if( weaponid == 0 ) return 0;
if( bodypart == 9 && !IsPlayerInAnyVehicle( damagedid ) ) // HEAD
    SetPlayerHealth( damagedid, 0 );
if( bodypart == 7 || bodypart == 8 ) // LEGS
{
   new Float:armour;
GetPlayerArmour(damagedid, armour);
if(armour <= 0)
{
   new Float:health;
   GetPlayerHealth(damagedid,health);
   SetPlayerHealth(damagedid, health-10.0);
}
}
if( bodypart == 3 ) // TORSO/CHEST
{
        new Float:armour;
GetPlayerArmour(damagedid, armour);
if(armour <= 0)
{
   new Float:health;
   GetPlayerHealth(damagedid,health);
   SetPlayerHealth(damagedid, health-20.0);
}
}
return 1;
}

 


Hogy tudom ezt megcsinálni? :D

Itt kérdezz warningot/error -t!
« Válasz #1231 Dátum: 2016. Július 24. - 08:16:31 »
0 Show voters
new S2[128];

 
Ezt a sort errorozza de nem rétem mi a gond.

Nem elérhető divkn

  • 3259
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1232 Dátum: 2016. Július 24. - 09:20:20 »
0 Show voters
Töröld ki.

Nem elérhető Daniii

  • 144
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1233 Dátum: 2016. Július 30. - 20:12:08 »
0 Show voters
Mi lehet a hiba?
Spoiler for LOG:
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[19:54:14] filterscripts = \"\"  (string)
[19:54:14]
[19:54:14] Server Plugins
[19:54:14] --------------
[19:54:14]  Loading plugin: streamer
[19:54:14]
*** Streamer Plugin v2.8.2 by Incognito loaded ***
[19:54:14]   Loaded.
[19:54:14]  Loading plugin: sscanf
[19:54:14]
[19:54:14]  ===============================
[19:54:14]       sscanf plugin loaded.     
[19:54:14]          Version:  2.8.1       
[19:54:14]    (c) 2012 Alex \"Y_Less\" Cole 
[19:54:14]  ===============================
[19:54:14]   Loaded.
[19:54:14]  Loading plugin: mysql
[19:54:14]  >> plugin.mysql: R39-5 successfully loaded.
[19:54:14]   Loaded.
[19:54:14]  Loaded 3 plugins.
[19:54:14]
[19:54:14] Filterscripts
[19:54:14] ---------------
[19:54:14]   Loaded 0 filterscripts.
[19:54:14] Script[gamemodes/ServerProject.amx]: Run time error 19: \"File or function is not found\"
[19:54:14] Number of vehicle models: 0

 
Pluginok:
- Crashdetect
- SSCANF
- STREAMER
- MYSQL

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1234 Dátum: 2016. Július 31. - 05:34:02 »
0 Show voters
Ez csak is plugin hiba lesz vagy lehetséges nem található a scriptfiles mappában egy másik mappa amit a szerver nem hozz létre, manuálisan kell létrehozni, hogy mentsen bele adatokat. Ha ez a mappa nincs létrehozva akkor ugyan ezt a hibát fogja neked kiadni a konzol.

Nem elérhető Daniii

  • 144
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1235 Dátum: 2016. Július 31. - 10:50:45 »
0 Show voters
Mindent megpróbáltam, nem tudom milyen plugin kéne. A scriptfiles mappába meg semmilyen mappa nem kell.

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1236 Dátum: 2016. Július 31. - 20:13:43 »
0 Show voters
Másold be a módból, hogy milyen include fájlokat használsz és megmondom neked mi kell. Egyébként az én vaksom a Whirlpool plugin lesz.

Nem elérhető Daniii

  • 144
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1237 Dátum: 2016. Július 31. - 20:43:42 »
0 Show voters
/* INCLUDEK */
#include <a_samp>
#include <zcmd>
#include <sscanf2>
#include <streamer>
#include <fixchars>
#include <a_mysql>
#include <foreach>

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1238 Dátum: 2016. Július 31. - 21:08:59 »
0 Show voters
sscanf, streamer, mysql plugin szükséges, de helyetted megpróbálnám a Whirlpool plugint is.

Nem elérhető Daniii

  • 144
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1239 Dátum: 2016. Július 31. - 21:16:16 »
0 Show voters
Idézetet írta: ƒeheristi97 date=1469992139\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"22125\" data-ipsquote-contentclass=\"forums_Topic
sscanf, streamer, mysql plugin szükséges, de helyetted megpróbálnám a Whirlpool plugint is.
 
Nem tudom mi az a Whirlpool, de használtam WP_HASH féle nevű függvényt. De nem jelzett rá errort.

Dupla hozzászólás automatikusan összefûzve. ( 2016. Július 31. - 21:21:17 )

Köszi leszedtem a Whirlpoolt, és mostmár megyen.  :) :) 8)
« Utoljára szerkesztve: 2016. Július 31. - 21:21:17 írta Daniii »

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1240 Dátum: 2016. Július 31. - 22:52:24 »
0 Show voters
Igen mivel a WP_HASH az a Whirlpool rövidítése.

Nem elérhető Daniii

  • 144
    • Profil megtekintése
Itt kérdezz warningot/error -t!
« Válasz #1241 Dátum: 2016. Augusztus 01. - 21:44:42 »
0 Show voters
Mi a hiba? Mit kell tennem?
Console hiba:
 
[20:18:26] Failed (plugins/Whirlpool.so: wrong ELF class: ELFCLASS64)

Itt kérdezz warningot/error -t!
« Válasz #1242 Dátum: 2016. Augusztus 02. - 22:07:01 »
0 Show voters
Sziasztok! Crashdetect az alábbit adta ki, valaki elmagyarázná a hibát?
 
----------
Loaded log file: \"server_log.txt\".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[22:05:13]
[22:05:13] Server Plugins
[22:05:13] --------------
[22:05:13]  Loading plugin: crashdetect.so
[22:05:13]   CrashDetect v4.15.1 is OK.
[22:05:13]   Loaded.
[22:05:13]  Loading plugin: sscanf.so
[22:05:13]
[22:05:13]  ===============================
[22:05:13]       sscanf plugin loaded.     
[22:05:13]          Version:  2.8.1       
[22:05:13]    (c) 2012 Alex \"Y_Less\" Cole 
[22:05:13]  ===============================
[22:05:13]   Loaded.
[22:05:13]  Loading plugin: streamer.so
[22:05:13]
*** Streamer Plugin v2.7.6 by Incognito loaded ***
[22:05:13]   Loaded.
[22:05:13]  Loaded 3 plugins.
[22:05:13]
[22:05:13] Filterscripts
[22:05:13] ---------------
[22:05:13]   Loading filterscript \'report.amx\'...
[22:05:13]   Unable to load filterscript \'report.amx\'.
[22:05:13]   Loaded 0 filterscripts.
[22:05:13] 
[22:05:13]  =======================================
[22:05:13]  |                                     |
[22:05:13]  |        YSI version 1.04.0000        |
[22:05:13]  |        By Alex \"Y_Less\" Cole        |
[22:05:13]  |                                     |
[22:05:13]  =======================================
[22:05:13] 
[22:05:13] Timerek betöltése folyamatban...
[22:05:13] Timerek betöltve!
[22:05:13] Mozgó objektek betöltése folyamatban...
[22:05:13] Mozgó objektek betöltve!
[22:05:13] Pickupok betöltése folyamatban...
[22:05:13] Pickupok betöltve!
[22:05:13]
----------------------------------
[22:05:13] 
[22:05:13]            Inside RPG
[22:05:13] 
[22:05:13] ----------------------------------
[22:05:13] Number of vehicle models: 20
[22:05:13] 
[22:05:13]  ==========================================
[22:05:13]  |                                        |
[22:05:13]  |  A new version (v3.09.0684) of YSI is  |
[22:05:13]  |            available from:             |
[22:05:13]  |                                        |
[22:05:13]  |     www.y-less.com/YSI/YSI_1.0.zip     |
[22:05:13]  |                                        |
[22:05:13]  | Changelog:                             |
[22:05:13]  |                                        |
[22:05:13]  |   3.00.0000:                           |
[22:05:13]  |                                        |
[22:05:13]  |   YSI 3.0 released!  Now includes the  |
[22:05:13]  | \"y_text\" library for better messages,  |
[22:05:13]  | and a reworked \"y_classes\" library.    |
[22:05:13]  | Largely documented here                |
[22:05:13]  | \"http://forum.sa-mp.com/showthread.php |
[22:05:13]  | ?t=321092\".                            |
[22:05:13]  |                                        |
[22:05:13]  |   3.01.0002:                           |
[22:05:13]  |                                        |
[22:05:13]  |   Small fixes to \"y_text\" and          |
[22:05:13]  | \"y_classes\".                           |
[22:05:13]  |                                        |
[22:05:13]  |   3.09.0684:                           |
[22:05:13]  |                                        |
[22:05:13]  |   Reverted to old download location.   |
[22:05:13]  | Improved (and fixed) version checks;   |
[22:05:13]  | added y_bitmap, y_areas, y_races,      |
[22:05:13]  | y_zonenames, better documentation;     |
[22:05:13]  | MANY other bug fixes - see the github  |
[22:05:13]  | repository for more details:           |
[22:05:13]  |                                        |
[22:05:13]  ==========================================
[22:05:13] 
[22:05:14] [connection] 84.0.86.141:52440 requests connection cookie.
[22:05:15] [connection] incoming connection: 84.0.86.141:52440 id: 0
[22:05:15] [join] Jake_Wood has joined the server (0:84.0.86.141)
[22:06:04] [connection] 81.183.201.40:52785 requests connection cookie.
[22:06:05] [connection] incoming connection: 81.183.201.40:52785 id: 1
[22:06:05] [join] Jason_Wood has joined the server (1:81.183.201.40)
[22:06:20] [debug] Run time error 4: \"Array index out of bounds\"
[22:06:20] [debug]  Accessing element at negative index -147641592
[22:06:20] [debug] AMX backtrace:
[22:06:20] [debug] #0 00017bc8 in AdmRang (playerid=-147641592) at C:\\Users\\Aron\\Documents\\SAMP Szerver\\gamemodes\\insiderpg.pwn:902
[22:06:20] [debug] #1 000dda18 in public cmd_adminok () at C:\\Users\\Aron\\Documents\\SAMP Szerver\\gamemodes\\insiderpg.pwn:10273
[22:06:20] [debug] #2 native CallLocalFunction () from samp03svr
[22:06:20] [debug] #3 000029b0 in public OnPlayerCommandText (playerid=1, cmdtext[]=@00e50ed4 \"/Adminok\") at C:\\Users\\Aron\\Documents\\pawno\\include\\zcmd_new.inc:123
[22:06:31] [debug] Server crashed while executing insiderpg.amx
[22:06:31] [debug] AMX backtrace:
[22:06:31] [debug] #0 native format () from samp03svr
[22:06:31] [debug] #1 00018500 in public cmd_makeadmin () at C:\\Users\\Aron\\Documents\\SAMP Szerver\\gamemodes\\insiderpg.pwn:912
[22:06:31] [debug] #2 native CallLocalFunction () from samp03svr
[22:06:31] [debug] #3 00002af4 in public OnPlayerCommandText (playerid=0, cmdtext[]=@00e50ed4 \"/makeadmin 1 7\") at C:\\Users\\Aron\\Documents\\pawno\\include\\zcmd_new.inc:129
[22:06:31] [debug] Native backtrace:
[22:06:31] [debug] #0 f7330e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[22:06:31] [debug] #1 f7329bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[22:06:31] [debug] #2 f732adbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[22:06:31] [debug] #3 f732b226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[22:06:31] [debug] #4 f7330adc in ?? () from plugins/crashdetect.so
[22:06:31] [debug] #5 f772cd10 in ?? ()
[22:06:31] [debug] #6 080965d7 in ?? () from ./samp03svr
[22:06:31] [debug] #7 080dce72 in ?? () from ./samp03svr
[22:06:31] [debug] #8 080950e4 in ?? () from ./samp03svr
[22:06:31] [debug] #9 f732c94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[22:06:31] [debug] #10 f732f8f8 in ?? () from plugins/crashdetect.so
[22:06:31] [debug] #11 f7333916 in amx_Exec () from plugins/crashdetect.so
[22:06:31] [debug] #12 f732bbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[22:06:31] [debug] #13 f732f659 in ?? () from plugins/crashdetect.so
[22:06:31] [debug] #14 f727f20c in ?? () from plugins/streamer.so
[22:06:31] [debug] #15 080dfd62 in ?? () from ./samp03svr
[22:06:31] [debug] #16 080950e4 in ?? () from ./samp03svr
[22:06:31] [debug] #17 f732c94b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[22:06:31] [debug] #18 f732f8f8 in ?? () from plugins/crashdetect.so
[22:06:31] [debug] #19 f7333916 in amx_Exec () from plugins/crashdetect.so
[22:06:31] [debug] #20 f732bbe6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[22:06:31] [debug] #21 f732f659 in ?? () from plugins/crashdetect.so
[22:06:31] [debug] #22 f727f20c in ?? () from plugins/streamer.so
[22:06:31] [debug] #23 080a5632 in ?? () from ./samp03svr
[22:06:31] [debug] #24 080b1751 in ?? () from ./samp03svr
[22:06:31] [debug] #25 08071d38 in ?? () from ./samp03svr
[22:06:31] [debug] #26 08071e32 in ?? () from ./samp03svr
[22:06:31] [debug] #27 0807bc50 in ?? () from ./samp03svr
[22:06:31] [debug] #28 080aed3d in ?? () from ./samp03svr
[22:06:31] [debug] #29 080aef02 in ?? () from ./samp03svr
[22:06:31] [debug] #30 080aa13a in ?? () from ./samp03svr
[22:06:31] [debug] #31 f736d637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
« Utoljára szerkesztve: 2016. Augusztus 02. - 22:16:14 írta Zippanto »

Itt kérdezz warningot/error -t!
« Válasz #1243 Dátum: 2016. Augusztus 02. - 22:26:01 »
0 Show voters
[22:06:20] [debug] Run time error 4: \"Array index out of bounds\"
[22:06:20] [debug]  Accessing element at negative index -147641592
[/quote]
Egy elég nagy mínusz indexen akarsz elérni egy tömbben egy értéket. Javaslom, nézd meg azokat a kódokat, amiket nemrég módosítottál/írtál.

Itt kérdezz warningot/error -t!
« Válasz #1244 Dátum: 2016. Augusztus 03. - 10:03:04 »
0 Show voters
Esetleg egy sorral nem bírnál kisegíteni? Vagy ezt nem írja a log?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal