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;}
new S2[128];
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
/* INCLUDEK */#include <a_samp>#include <zcmd>#include <sscanf2>#include <streamer>#include <fixchars>#include <a_mysql>#include <foreach>
sscanf, streamer, mysql plugin szükséges, de helyetted megpróbálnám a Whirlpool plugint is.
[20:18:26] Failed (plugins/Whirlpool.so: wrong ELF class: ELFCLASS64)
----------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
[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.