[Include] weapon-config.inc - Damage system with many features

sorry if this of topic thread

how to use god mode command with this inc

PHP код:
CMD:god(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid))
        return 
SendClientMessage(playerid0x800000AA"You must be Admin to use this command");
    new 
id;
    if(
sscanf(params"u"id))
        
id playerid;
    else
        
id strval(params);
    if (
id == playerid)
    {
        if (
god_mode[playerid] == 1)
        {
            
god_mode[playerid] = 0;
            
SetPlayerHealth(playerid100.0);
            
SendClientMessage(playeridgreen"Back to mortality.");
        }
        else
        {
            
god_mode[playerid] = 1;
            
SetPlayerHealth(playeridFloat:0x7F800000);
            
SendClientMessage(playeridgreen"You are god now!");
        }
    }
    else
    {
        if(
IsPlayerConnected(id))
        {
            new 
admin[MAX_PLAYER_NAME], p[MAX_PLAYER_NAME], string[90];
            
GetPlayerName(playeridadminMAX_PLAYER_NAME);
            
GetPlayerName(idpMAX_PLAYER_NAME);
            if (
god_mode[id] == 0)
            {
                
god_mode[id] = 1;
                
SetPlayerHealth(idFloat:0x7F800000);
                
format(stringsizeof(string), "You have successfully turned %s into god."p);
                
SendClientMessage(playeridgreenstring);
                
format(stringsizeof(string), "Admin %s has turned you into god!"admin);
                
SendClientMessage(idgreenstring);
            }
            else
            {
                
god_mode[id] = 0;
                
SetPlayerHealth(id100.0);
                
format(stringsizeof(string), "You have turned god %s into human."p);
                
SendClientMessage(playeridgreenstring);
                
SendClientMessage(idgreen"Back to mortality.");
            }
        }
        else 
SendClientMessage(playerid0x800000AA"ERROR: Player is not connected.");
    }
    return 
1;

Reply

Quote:
Originally Posted by crukk11
Посмотреть сообщение
sorry if this of topic thread

how to use god mode command with this inc

PHP код:
CMD:god(playeridparams[])
{
    if(!
IsPlayerAdmin(playerid))
        return 
SendClientMessage(playerid0x800000AA"You must be Admin to use this command");
    new 
id;
    if(
sscanf(params"u"id))
        
id playerid;
    else
        
id strval(params);
    if (
id == playerid)
    {
        if (
god_mode[playerid] == 1)
        {
            
god_mode[playerid] = 0;
            
SetPlayerHealth(playerid100.0);
            
SendClientMessage(playeridgreen"Back to mortality.");
        }
        else
        {
            
god_mode[playerid] = 1;
            
SetPlayerHealth(playeridFloat:0x7F800000);
            
SendClientMessage(playeridgreen"You are god now!");
        }
    }
    else
    {
        if(
IsPlayerConnected(id))
        {
            new 
admin[MAX_PLAYER_NAME], p[MAX_PLAYER_NAME], string[90];
            
GetPlayerName(playeridadminMAX_PLAYER_NAME);
            
GetPlayerName(idpMAX_PLAYER_NAME);
            if (
god_mode[id] == 0)
            {
                
god_mode[id] = 1;
                
SetPlayerHealth(idFloat:0x7F800000);
                
format(stringsizeof(string), "You have successfully turned %s into god."p);
                
SendClientMessage(playeridgreenstring);
                
format(stringsizeof(string), "Admin %s has turned you into god!"admin);
                
SendClientMessage(idgreenstring);
            }
            else
            {
                
god_mode[id] = 0;
                
SetPlayerHealth(id100.0);
                
format(stringsizeof(string), "You have turned god %s into human."p);
                
SendClientMessage(playeridgreenstring);
                
SendClientMessage(idgreen"Back to mortality.");
            }
        }
        else 
SendClientMessage(playerid0x800000AA"ERROR: Player is not connected.");
    }
    return 
1;

PHP код:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    if(
god_mode[playerid])
        return 
0;
    return 
1;

Reply

how to use for anti healt hack?
example code?
Reply

Quote:
Originally Posted by eSPeZet
Посмотреть сообщение
guys I just found out a very critical bug here...I found it on a server using this "include/plugin" (i didn't KNOW but I assumed it is this one) so I downloaded this here and tested it and the exact same thing happens...you can reduce about 60% of health of any player with only one shot from a very big distance (EVEN though it should REJECT any hit from too big distance)..not sure if i should post HOW this bug works since people may abuse this on every server using this include.
I wanted to say, that I realized today that this is not a bug of this script, it is in fact a bug of SA-MP (and it is not even written anywhere in this forum Oo)
Reply

Quote:
Originally Posted by NewFreeroamStunt
Посмотреть сообщение
how to use for anti healt hack?
example code?
There's no need for you to code anything. The script prevents health hack by default. Re-read the main post again.
Reply

Help me please...
PHP код:
D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc(5322) : warning 219local variable "second" shadows a variable at a preceding level
D
:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc(5542) : error 025: function heading differs from prototype
D
:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn(4061) : warning 217loose indentation
D
:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn(4440) : warning 217loose indentation
D
:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn(5152) : warning 217loose indentation
D
:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn(5162) : warning 217loose indentation
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

PHP код:
on weapon-config.inc
#define OnVehicleDeath WC_OnVehicleDeath
#if defined WC_OnVehicleDeath
    
forward WC_OnVehicleDeath(vehicleidkillerid); // THIS LINE
#endif 
Reply

server crash and errors when player spawn. server automatic "SHUTDOWN"
i already use SKY plugins
pleasee.. help me?

PHP код:

----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[02:18:32
[
02:18:32Server Plugins
[02:18:32] --------------
[
02:18:32]  Loading plugincrashdetect
[02:18:32]   CrashDetect v4.18.1 is OK.
[
02:18:32]   Loaded.
[
02:18:32]  Loading pluginCTime
[02:18:32]  
 
» CTime Library Plugin For Pawn v0.1.0 Copyright © 2011 RyDeR` 
 
[02:18:32]   Loaded.
[02:18:32]  Loading plugin: Encrypt
[02:18:32] 
[02:18:32] ______________________________________
[02:18:32]  Encrypt Plugin v0.1 loaded
[02:18:32] ______________________________________
[02:18:32]  By: Fro © Copyright <TBG> 2009-2010
[02:18:32] ______________________________________
[02:18:32]   Loaded.
[02:18:32]  Loading plugin: irc
[02:18:33] 
*** IRC Plugin v1.4.8 by Incognito loaded ***
[02:18:33]   Loaded.
[02:18:33]  Loading plugin: mysql
[02:18:33]  >> plugin.mysql: R39-6 successfully loaded.
[02:18:33]   Loaded.
[02:18:33]  Loading plugin: SKY
[02:18:33] Error: Unknown Windows server version
[02:18:33]   Loaded.
[02:18:33]  Loading plugin: sscanf
[02:18:33] 
[02:18:33]  ===============================
[02:18:33]       sscanf plugin loaded.     
[02:18:33]          Version:  2.8.2        
[02:18:33]    © 2012 Alex "Y_Less" Cole  
[02:18:33]  ===============================
[02:18:33]   Loaded.
[02:18:33]  Loading plugin: streamer
[02:18:33] 
*** Streamer Plugin v2.9.1 by Incognito loaded ***
[02:18:33]   Loaded.
[02:18:33]  Loading plugin: nativechecker
[02:18:33]   Loaded.
[02:18:33]  Loaded 9 plugins.
[02:18:33] 
[02:18:33] Ban list
[02:18:33] --------
[02:18:33]  Loaded: samp.ban
[02:18:33] 
[02:18:33] 
[02:18:33] Filterscripts
[02:18:33] ---------------
[02:18:33]   Loading filterscript 'NFS_ObjectsFS7.amx'...
[02:18:33] Dynamic Object Server Loaded...
[02:18:33]   Loaded 1 filterscripts.
[02:18:34]  
[02:18:34]  
[02:18:34]  
[02:18:34]  ======================================= 
[02:18:34]  |                                     | 
[02:18:34]  |        YSI version 4.00.0001        | 
[02:18:34]  |        By Alex "Y_Less" Cole        | 
[02:18:34]  |                                     | 
[02:18:34]  ======================================= 
[02:18:34]  
[02:19:12] Memuat Database Dynamic Objects Server...
[02:19:12] Gates loaded successfully.
[02:19:12] - 4 Forbidden Names Loaded
[02:19:12] - 4 Forbidden Tags Loaded
[02:19:12] - 4 Forbidden Words Loaded
[02:19:12] 
 - - - - - - - - - - - - - - - - - - -    
[02:19:12] 
       NFS :: New Freeroam Stunt    
[02:19:12] 
          © 2015 - Build 42!         
[02:19:12] 
 - - - - - - - - - - - - - - - - - - - 
[02:19:12] Number of objects loaded: 50958
[02:19:12] Number of vehicles loaded: 1238
[02:19:12] Number of vehicle models: 109
[02:19:37] IRC_OnConnect(1): Bot ircBot[1] has connected.
[02:19:38] IRC_OnConnect(2): Bot ircBot[2] has connected.
[02:19:39] IRC_OnJoinChannel(1): Bot ircBot[1] has joined #NewFreeroamStunt.
[02:19:39] IRC_OnJoinChannel(1): Bot ircBot[1] has joined #NFS+Staff.
[02:19:39] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +ntr-o NFS.
[02:19:39] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +ntr-o NFS.
[02:19:39] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS.
[02:19:39] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS.
[02:19:40] IRC_OnJoinChannel(2): Bot ircBot[2] has joined #NewFreeroamStunt.
[02:19:40] IRC_OnJoinChannel(2): Bot ircBot[2] has joined #NFS+Staff.
[02:19:40] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-3.
[02:19:41] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-3.
[02:19:42] IRC_OnConnect(3): Bot ircBot[3] has connected.
[02:19:44] IRC_OnJoinChannel(3): Bot ircBot[3] has joined #NewFreeroamStunt.
[02:19:44] IRC_OnJoinChannel(3): Bot ircBot[3] has joined #NFS+Staff.
[02:19:44] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-32.
[02:19:44] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-32.
[02:20:48] IRC_OnConnect(5): Bot ircBot[5] has connected.
[02:20:49] IRC_OnConnect(4): Bot ircBot[4] has connected.
[02:20:49] IRC_OnConnect(6): Bot ircBot[6] has connected.
[02:20:49] IRC_OnJoinChannel(5): Bot ircBot[5] has joined #NewFreeroamStunt.
[02:20:49] IRC_OnJoinChannel(5): Bot ircBot[5] has joined #NFS+Staff.
[02:20:50] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-42.
[02:20:50] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-42.
[02:20:51] IRC_OnJoinChannel(6): Bot ircBot[6] has joined #NewFreeroamStunt.
[02:20:51] [connection] incoming connection: 192.168.42.20:61711 id: 0
[02:20:51] IRC_OnJoinChannel(6): Bot ircBot[6] has joined #NFS+Staff.
[02:20:51] [join] Dandy_Prasetyo has joined the server (0:192.168.42.20)
[02:20:51] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-52.
[02:20:51] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-52.
[02:20:56] IRC_OnJoinChannel(4): Bot ircBot[4] has joined #NewFreeroamStunt.
[02:20:56] IRC_OnJoinChannel(4): Bot ircBot[4] has joined #NFS+Staff.
[02:20:57] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-4.
[02:20:58] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-4.
[02:21:27] [debug] Server crashed while executing NFS_Buss6Updates.amx
[02:21:27] [debug] AMX backtrace:
[02:21:27] [debug] #0 native PlayerTextDrawSetPosition () from SKY.DLL
[02:21:27] [debug] #1 0006ddbc in UpdateHealthBar (playerid=0, bool:force=true) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4050
[02:21:27] [debug] #2 00057a7c in WC_SetPlayerHealth (playerid=0, Float:health=100.00000, Float:armour=-1.00000) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:1399
[02:21:27] [debug] #3 0023ce58 in public ResetHealth (playerid=0) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:25719
[02:21:28] [debug] Native backtrace:
[02:21:28] [debug] #0 6e1e339a in ?? () from plugins\SKY.DLL
[02:21:28] [debug] #1 004010b6 in ?? () from samp-server.exe
[02:21:28] [debug] #2 72d5d60a in ?? () from plugins\crashdetect.DLL
[02:21:28] [debug] #3 72d64078 in ?? () from plugins\crashdetect.DLL
[02:21:28] [debug] #4 72d5a767 in ?? () from plugins\crashdetect.DLL
[02:21:28] [debug] #5 72d5d65a in ?? () from plugins\crashdetect.DLL
[02:21:28] [debug] #6 6c854629 in ?? () from plugins\streamer.DLL
[02:21:28] [debug] #7 00482a68 in ?? () from samp-server.exe
[02:21:28] [debug] #8 004912ba in ?? () from samp-server.exe
[02:21:28] [debug] Registers:
[02:21:28] [debug] EAX: 00000000 EBX: 00000001 ECX: 0000001f EDX: 079fbb24
[02:21:28] [debug] ESI: 00000000 EDI: 000000d4 EBP: 00000000 ESP: 0012fe20
[02:21:28] [debug] EIP: 004912ba EFLAGS: 00010206
[02:21:28] [debug] Stack:
[02:21:28] [debug] ESP+00000000: 00000005 7677ba90 7677bccc 00000000
[02:21:28] [debug] ESP+00000020: 0012ff88 7ffde000 0000e000 00010101
[02:21:28] [debug] ESP+00000040: 0150ab38 656d6167 65646f6d 00003531
[02:21:28] [debug] ESP+00000060: 0012fe70 0012ff78 0012ff78 0049d298
[02:21:28] [debug] ESP+00000080: 004ab530 0012ff78 004ab171 ffffffff
[02:21:28] [debug] ESP+000000a0: 00000094 00000006 00000001 00001db1
[02:21:28] [debug] ESP+000000c0: 00003120 00000000 00000000 00000000
[02:21:28] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000
[02:21:28] [debug] ESP+00000100: 00000000 00000000 00000000 00000000
[02:21:28] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[02:21:28] [debug] ESP+00000140: 00000000 00000000 c0000005 00000000
[02:21:28] [debug] ESP+00000160: 004ba530 00000000 0012ff94 76783c45
[02:21:28] [debug] ESP+00000180: 773f2d1f 00000000 00000000 7ffde000
[02:21:28] [debug] ESP+000001a0: 00000000 ffffffff 7747e0ed 0066c0b3
[02:21:28] [debug] ESP+000001c0: 7ffde000 00000000 00000000 00000000
[02:21:28] [debug] ESP+000001e0: 78746341 00000020 00000001 00003020
[02:21:28] [debug] ESP+00000200: 00000014 00000001 00000007 00000034
[02:21:28] [debug] ESP+00000220: 00000000 00000000 00000000 00000002
[02:21:28] [debug] ESP+00000240: 00000260 00000000 f33271ba 00000540
[02:21:28] [debug] ESP+00000260: 2d59495b 000008ac 00000032 000008e0
[02:21:28] [debug] ESP+00000280: 00000042 00000c24 00000336 00000000
[02:21:28] [debug] ESP+000002a0: 00000368 00000000 b1280544 00001324
[02:21:28] [debug] ESP+000002c0: 00000009 000000ec 00000002 00000001
[02:21:28] [debug] ESP+000002e0: 0000174c 000004b4 00000001 00000003
[02:21:28] [debug] ESP+00000300: 00002a8c 00000314 00000002 00000005
[02:21:28] [debug] ESP+00000320: 00002e38 000000cc 00000002 00000007
[02:21:28] [debug] ESP+00000340: 00002ff4 00000028 00000002 0000000b
[02:21:28] [debug] ESP+00000360: 0000002c 00000001 00000001 00000001
[02:21:28] [debug] ESP+00000380: 0000002c 0000005e 0000005e 00000000
[02:21:28] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[02:21:28] [debug] ESP+000003c0: 003a0043 0057005c 006e0069 006f0064
[02:21:28] [debug] ESP+000003e0: 005c0073 00000000 1a26ef4e 0000011c
[02:21:28] [debug] Loaded modules:
[02:21:28] [debug] 00400000 - 0051e000 samp-server.exe
[02:21:28] [debug] 77460000 - 7759c000 ntdll.dll
[02:21:28] [debug] 76730000 - 76804000 kernel32.dll
[02:21:28] [debug] 75660000 - 756aa000 KERNELBASE.dll
[02:21:28] [debug] 76810000 - 7745a000 SHELL32.dll
[02:21:28] [debug] 75b20000 - 75bcc000 msvcrt.dll
[02:21:28] [debug] 75930000 - 75987000 SHLWAPI.dll
[02:21:28] [debug] 75bd0000 - 75c1e000 GDI32.dll
[02:21:28] [debug] 75990000 - 75a59000 USER32.dll
[02:21:28] [debug] 775e0000 - 775ea000 LPK.dll
[02:21:28] [debug] 775f0000 - 7768d000 USP10.dll
[02:21:28] [debug] 74940000 - 74947000 WSOCK32.dll
[02:21:28] [debug] 758b0000 - 758e5000 WS2_32.dll
[02:21:28] [debug] 75f60000 - 76001000 RPCRT4.dll
[02:21:28] [debug] 758f0000 - 758f6000 NSI.dll
[02:21:28] [debug] 70bc0000 - 70bf2000 WINMM.dll
[02:21:28] [debug] 75b00000 - 75b1f000 IMM32.DLL
[02:21:28] [debug] 76350000 - 7641c000 MSCTF.dll
[02:21:28] [debug] 72d40000 - 72d90000 crashdetect.DLL
[02:21:28] [debug] 6eff0000 - 6f059000 MSVCP100.dll
[02:21:28] [debug] 6cd50000 - 6ce0f000 MSVCR100.dll
[02:21:28] [debug] 73af0000 - 73b0d000 CTime.DLL
[02:21:28] [debug] 66be0000 - 66d53000 MSVCR100D.dll
[02:21:28] [debug] 73bd0000 - 73bde000 Encrypt.DLL
[02:21:28] [debug] 6c490000 - 6c533000 MSVCR90.dll
[02:21:28] [debug] 72d90000 - 72dda000 irc.DLL
[02:21:28] [debug] 6cce0000 - 6cd4d000 MSVCP140.dll
[02:21:28] [debug] 72eb0000 - 72ec5000 VCRUNTIME140.dll
[02:21:28] [debug] 74960000 - 74964000 api-ms-win-crt-runtime-l1-1-0.dll
[02:21:28] [debug] 6b7c0000 - 6b898000 ucrtbase.DLL
[02:21:28] [debug] 73bc0000 - 73bc3000 api-ms-win-core-timezone-l1-1-0.dll
[02:21:28] [debug] 73990000 - 73993000 api-ms-win-core-file-l2-1-0.dll
[02:21:28] [debug] 72f10000 - 72f13000 api-ms-win-core-localization-l1-2-0.dll
[02:21:28] [debug] 70290000 - 70293000 api-ms-win-core-synch-l1-2-0.dll
[02:21:28] [debug] 72d10000 - 72d13000 api-ms-win-core-processthreads-l1-1-1.dll
[02:21:28] [debug] 72d30000 - 72d33000 api-ms-win-core-file-l1-2-0.dll
[02:21:28] [debug] 72cf0000 - 72cf4000 api-ms-win-crt-string-l1-1-0.dll
[02:21:28] [debug] 72d00000 - 72d03000 api-ms-win-crt-heap-l1-1-0.dll
[02:21:28] [debug] 72cd0000 - 72cd4000 api-ms-win-crt-stdio-l1-1-0.dll
[02:21:28] [debug] 72ce0000 - 72ce4000 api-ms-win-crt-convert-l1-1-0.dll
[02:21:28] [debug] 75a60000 - 75b00000 ADVAPI32.dll
[02:21:28] [debug] 775c0000 - 775d9000 sechost.dll
[02:21:28] [debug] 72ba0000 - 72ba3000 api-ms-win-crt-locale-l1-1-0.dll
[02:21:28] [debug] 72cc0000 - 72cc5000 api-ms-win-crt-math-l1-1-0.dll
[02:21:28] [debug] 702a0000 - 702a5000 api-ms-win-crt-multibyte-l1-1-0.dll
[02:21:28] [debug] 729b0000 - 729b3000 api-ms-win-crt-time-l1-1-0.dll
[02:21:28] [debug] 70040000 - 70043000 api-ms-win-crt-filesystem-l1-1-0.dll
[02:21:28] [debug] 70050000 - 70053000 api-ms-win-crt-environment-l1-1-0.dll
[02:21:28] [debug] 6ff40000 - 6ff43000 api-ms-win-crt-utility-l1-1-0.dll
[02:21:28] [debug] 6cc40000 - 6cc84000 mysql.DLL
[02:21:28] [debug] 666d0000 - 66bdd000 libmysql.dll
[02:21:28] [debug] 754a0000 - 754a8000 Secur32.dll
[02:21:28] [debug] 754c0000 - 754db000 SSPICLI.DLL
[02:21:28] [debug] 742d0000 - 742e0000 NLAapi.dll
[02:21:28] [debug] 740f0000 - 74100000 napinsp.dll
[02:21:28] [debug] 740d0000 - 740e2000 pnrpnsp.dll
[02:21:28] [debug] 740c0000 - 740c8000 winrnr.dll
[02:21:28] [debug] 73ff0000 - 73fff000 PrxerNsp.dll
[02:21:28] [debug] 75020000 - 7505c000 mswsock.dll
[02:21:28] [debug] 74ee0000 - 74f24000 DNSAPI.dll
[02:21:28] [debug] 73ed0000 - 73ed6000 rasadhlp.dll
[02:21:28] [debug] 6e1e0000 - 6e21a000 SKY.DLL
[02:21:28] [debug] 775b0000 - 775b5000 PSAPI.DLL
[02:21:28] [debug] 10000000 - 1000f000 sscanf.DLL
[02:21:28] [debug] 6c850000 - 6c8aa000 streamer.DLL
[02:21:28] [debug] 6ff50000 - 6ff55000 nativechecker.DLL
[02:21:28] [debug] 74b30000 - 74b43000 PrxerDrv.dll
[02:21:28] [debug] 74b10000 - 74b15000 wshtcpip.dll
[02:21:28] [debug] 74370000 - 7438c000 IPHLPAPI.DLL
[02:21:28] [debug] 74950000 - 74957000 WINNSI.DLL
[02:21:28] [debug] 735d0000 - 73608000 fwpuclnt.dll
[02:21:28] [debug] 75010000 - 75016000 wship6.dll 
but when i use "LINUX"
server can start normal, but if i try suicide use grenade(bomb), my armour back to full, and my health not reduced.
and i get errors logs, like this
PHP код:
----------
Loaded log file"server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[07:19:49password ""  (string)
[
07:19:49
[
07:19:49Server Plugins
[07:19:49] --------------
[
07:19:49]  Loading plugincrashdetect.so
[07:19:49]   CrashDetect v4.18.1 is OK.
[
07:19:49]   Loaded.
[
07:19:49]  Loading pluginstreamer.so
[07:19:49
*** 
Streamer Plugin v2.9.1 by Incognito loaded ***
[
07:19:49]   Loaded.
[
07:19:49]  Loading pluginSKY.so
[07:19:49ErrorUnknown Linux server version
[07:19:49]   Loaded.
[
07:19:49]  Loading pluginmysql_static.so
[07:19:49]  >> plugin.mysqlR39-6 successfully loaded.
[
07:19:49]   Loaded.
[
07:19:49]  Loading pluginirc.so
[07:19:49
*** 
IRC Plugin v1.4.8 by Incognito loaded ***
[
07:19:49]   Loaded.
[
07:19:49]  Loading pluginEncrypt.so
[07:19:49
[
07:19:49______________________________________
[07:19:49]  Encrypt Plugin v0.1 loaded
[07:19:49______________________________________
[07:19:49]  ByFro (cCopyright <TBG2009-2010
[07:19:49______________________________________
[07:19:49]   Loaded.
[
07:19:49]  Loading pluginCTime.so
[07:19:49]  
 
» CTime Library Plugin For Pawn v0.1.0 Copyright © 2011 RyDeR` 
 
[07:19:49]   Loaded.
[07:19:49]  Loading plugin: sscanf.so
[07:19:49] 
[07:19:49]  ===============================
[07:19:49]       sscanf plugin loaded.     
[07:19:49]          Version:  2.8.2        
[07:19:49]    © 2012 Alex "Y_Less" Cole  
[07:19:49]  ===============================
[07:19:49]   Loaded.
[07:19:49]  Loaded 8 plugins.
[07:19:49] 
[07:19:49] Filterscripts
[07:19:49] ---------------
[07:19:49]   Loading filterscript 'UltraHost.amx'...
[07:19:49]   Loading filterscript 'NFS_ObjectsFS7.amx'...
[07:19:49] Dynamic Object Server Loaded...
[07:19:49]   Loaded 2 filterscripts.
[07:19:49]  
[07:19:49]  
[07:19:49]  
[07:19:49]  ======================================= 
[07:19:49]  |                                     | 
[07:19:49]  |        YSI version 4.00.0001        | 
[07:19:49]  |        By Alex "Y_Less" Cole        | 
[07:19:49]  |                                     | 
[07:19:49]  ======================================= 
[07:19:49]  
[07:20:42] Memuat Database Dynamic Objects Server...
[07:20:42] Gates loaded successfully.
[07:20:42] - 4 Forbidden Names Loaded
[07:20:42] - 4 Forbidden Tags Loaded
[07:20:42] - 4 Forbidden Words Loaded
[07:20:42] 
 - - - - - - - - - - - - - - - - - - -    
[07:20:42] 
       NFS :: New Freeroam Stunt    
[07:20:42] 
          © 2015 - Build 42!         
[07:20:42] 
 - - - - - - - - - - - - - - - - - - - 
[07:20:43] Number of objects loaded: 50958
[07:20:43] Number of vehicles loaded: 1238
[07:20:43] Number of vehicle models: 109
[07:20:43] [Business] Number of Loaded 214 businesses.
[07:20:43] Number of houses loaded: 684
[07:21:07] IRC_OnConnect(1): Bot ircBot[1] has connected.
[07:21:07] IRC_OnConnect(2): Bot ircBot[2] has connected.
[07:21:08] IRC_OnJoinChannel(1): Bot ircBot[1] has joined #NewFreeroamStunt.
[07:21:08] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +ntr-o NFS.
[07:21:08] IRC_OnJoinChannel(1): Bot ircBot[1] has joined #NFS+Staff.
[07:21:09] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +ntr-o NFS.
[07:21:09] IRC_OnJoinChannel(2): Bot ircBot[2] has joined #NewFreeroamStunt.
[07:21:09] IRC_OnJoinChannel(2): Bot ircBot[2] has joined #NFS+Staff.
[07:21:09] IRC_OnConnect(3): Bot ircBot[3] has connected.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-3.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-3.
[07:21:10] IRC_OnJoinChannel(3): Bot ircBot[3] has joined #NewFreeroamStunt.
[07:21:10] IRC_OnJoinChannel(3): Bot ircBot[3] has joined #NFS+Staff.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NewFreeroamStunt mode to +h NFS-32.
[07:21:10] IRC_OnUserSetChannelMode(1): ChanServ(services@services.sa-irc.com) changed channel #NFS+Staff mode to +h NFS-32.
[07:24:10] [connection] incoming connection: 202.67.46.249:61635 id: 0
[07:24:13] [join] Dandy_Prasetyo has joined the server (0:202.67.46.249)
[07:24:26] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 5 Listitem: -1
[07:24:26] [mysql] logged
[07:24:28] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 17 Listitem: -1
[07:24:44] [chat] [Dandy_Prasetyo]: a
[07:24:47] [chat] [Dandy_Prasetyo]: lol
[07:24:51] [debug] Run time error 4: "Array index out of bounds"
[07:24:51] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:24:51] [debug] AMX backtrace:
[07:24:51] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 16.88513, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:24:51] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 16.88513, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:24:51] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=16.88513, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:24:51] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=16.88513, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:24:51] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=16.88513, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:24:56] [CMD]: Dandy_Prasetyo(0) has used the command '/ls'
[07:25:16] [debug] Run time error 4: "Array index out of bounds"
[07:25:16] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:25:16] [debug] AMX backtrace:
[07:25:16] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 34.94097, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:25:16] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 34.94097, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:25:16] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=34.94097, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:25:16] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=34.94097, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:25:16] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=34.94097, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:25:19] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:25:22] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:25:30] [debug] Run time error 4: "Array index out of bounds"
[07:25:30] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:25:30] [debug] AMX backtrace:
[07:25:30] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 23.88618, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:25:30] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 23.88618, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:25:30] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=23.88618, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:25:30] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=23.88618, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:25:30] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=23.88618, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:25:43] [debug] Run time error 4: "Array index out of bounds"
[07:25:43] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:25:43] [debug] AMX backtrace:
[07:25:43] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 54.36777, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:25:43] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 54.36777, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:25:43] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=54.36777, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:25:43] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=54.36777, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:25:43] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=54.36777, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:25:43] [debug] Run time error 4: "Array index out of bounds"
[07:25:43] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:25:43] [debug] AMX backtrace:
[07:25:43] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 30.42118, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:25:43] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 30.42118, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:25:43] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=30.42118, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:25:43] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=30.42118, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:25:43] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=30.42118, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:25:55] RaceRotation: LoadRace(Bone) successful
[07:26:06] [debug] Run time error 4: "Array index out of bounds"
[07:26:06] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:06] [debug] AMX backtrace:
[07:26:06] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:06] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:06] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:06] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:06] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:08] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:26:18] [debug] Run time error 4: "Array index out of bounds"
[07:26:18] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:18] [debug] AMX backtrace:
[07:26:18] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:18] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:18] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=4.95000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:18] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:18] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:26] [debug] Run time error 4: "Array index out of bounds"
[07:26:26] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:26] [debug] AMX backtrace:
[07:26:26] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 36.07331, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:26] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 36.07331, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:26] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=36.07331, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:26] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=36.07331, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:26] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=36.07331, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:37] [debug] Run time error 4: "Array index out of bounds"
[07:26:37] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:37] [debug] AMX backtrace:
[07:26:37] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:37] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:37] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:37] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:37] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:47] [debug] Run time error 4: "Array index out of bounds"
[07:26:47] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:47] [debug] AMX backtrace:
[07:26:47] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:47] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:47] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=4.95000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:47] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:47] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:50] [debug] Run time error 4: "Array index out of bounds"
[07:26:50] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:26:50] [debug] AMX backtrace:
[07:26:50] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:26:50] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:26:50] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=4.95000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:26:50] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:26:50] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:26:51] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:26:55] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:27:11] [debug] Run time error 4: "Array index out of bounds"
[07:27:11] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:27:11] [debug] AMX backtrace:
[07:27:11] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:27:11] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:27:11] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:27:11] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:27:11] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:27:14] [CMD]: Dandy_Prasetyo(0) has used the command '/killme'
[07:27:14] [debug] Run time error 4: "Array index out of bounds"
[07:27:14] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:27:14] [debug] AMX backtrace:
[07:27:14] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4558 0, &Float:amount=@018d455c 0.00000, &issuerid=@018d4560 65535, &weapon=@018d4564 55, &bodypart=@018d4568 0) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:27:14] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4558 0, &Float:amount=@018d455c 0.00000, &issuerid=@018d4560 65535, &weapon=@018d4564 55, &bodypart=@018d4568 0) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:27:14] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.00000, issuerid=65535, weaponid=55, bodypart=0, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:27:14] [debug] #3 0005783c in WC_SetPlayerHealth (playerid=0, Float:health=0.00000, Float:armour=-1.00000) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:1383
[07:27:14] [debug] #4 002a64f8 in public cmd_killme (playerid=0, ... <1 argument>) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:34904
[07:27:14] [debug] #5 native CallLocalFunction () from sampsvr-port_142
[07:27:14] [debug] #6 0017ad2c in public OnPlayerCommandText (playerid=0, cmdtext[]=@018d05cc "/killme") at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9485
[07:27:21] [part] Dandy_Prasetyo has left the server (0:1)
[07:30:54] [connection] incoming connection: 202.67.46.249:61637 id: 0
[07:30:56] [join] Dandy_Prasetyo has joined the server (0:202.67.46.249)
[07:31:06] RaceRotation: LoadRace(Tierra) successful
[07:31:15] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 5 Listitem: -1
[07:31:15] [mysql] logged
[07:31:17] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 17 Listitem: -1
[07:31:33] [CMD]: Dandy_Prasetyo(0) has used the command '/bank'
[07:31:40] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:31:45] [debug] Run time error 4: "Array index out of bounds"
[07:31:45] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:31:45] [debug] AMX backtrace:
[07:31:45] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:31:45] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 4.95000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:31:45] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=4.95000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:31:45] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:31:45] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=4.95000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:31:52] [debug] Run time error 4: "Array index out of bounds"
[07:31:52] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:31:52] [debug] AMX backtrace:
[07:31:52] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:31:52] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:31:52] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:31:52] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:31:52] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:31:54] [CMD]: Dandy_Prasetyo(0) has used the command '/god'
[07:32:04] [debug] Run time error 4: "Array index out of bounds"
[07:32:04] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:32:04] [debug] AMX backtrace:
[07:32:04] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:32:04] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:32:04] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:32:04] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:32:04] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:32:42] [CMD]: Dandy_Prasetyo(0) has used the command '/cnr'
[07:32:43] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 507 Listitem: 0
[07:32:44] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 17 Listitem: -1
[07:32:57] [debug] Run time error 4: "Array index out of bounds"
[07:32:57] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:32:57] [debug] AMX backtrace:
[07:32:57] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:32:57] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 165.00000, &issuerid=@018d4568 65535, &weapon=@018d456c 54, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:32:57] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=165.00000, issuerid=65535, weaponid=54, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:32:57] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:32:57] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=165.00000, weaponid=54, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:33:17] [CMD]: Dandy_Prasetyo(0) has used the command '/givew'
[07:33:19] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweap'
[07:33:22] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon'
[07:33:28] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 16 100'
[07:33:53] [CMD]: Dandy_Prasetyo(0) has used the command '/leave'
[07:34:10] [CMD]: Dandy_Prasetyo(0) has used the command '/stats'
[07:34:14] [OnDialogResponse]: Dandy_Prasetyo(0) has used dialog id: 216 Listitem: -1
[07:34:24] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 16 100'
[07:35:10] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 38 100'
[07:35:18] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 36 100'
[07:35:24] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 33 100'
[07:35:27] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 34 100'
[07:35:31] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 35 100'
[07:35:35] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 36 100'
[07:35:38] [CMD]: Dandy_Prasetyo(0) has used the command '/giveweapon 0 37 100'
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.18975, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.18975, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.18975, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.18975, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.18975, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.20625, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.20625, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.20625, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.20625, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.20625, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.19800, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.19800, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.19800, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.19800, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.19800, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.20625, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.20625, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.20625, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.20625, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.20625, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.21450, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.21450, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.21450, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22275, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22275, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.22275, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22275, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22275, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:41] [debug] Run time error 4: "Array index out of bounds"
[07:35:41] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:41] [debug] AMX backtrace:
[07:35:41] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22917, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:41] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22917, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:41] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.22917, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:41] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22917, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:41] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22917, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.21450, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.21450, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.21450, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22275, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.22275, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.22275, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22275, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.22275, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23100, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23100, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23100, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23925, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23925, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23925, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23925, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23925, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:42] [debug] Run time error 4: "Array index out of bounds"
[07:35:42] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:42] [debug] AMX backtrace:
[07:35:42] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:42] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23100, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:42] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23100, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:42] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:42] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23100, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:44] [debug] Run time error 4: "Array index out of bounds"
[07:35:44] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:44] [debug] AMX backtrace:
[07:35:44] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23925, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:44] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.23925, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448
[07:35:44] [debug] #2 0007168c in InflictDamage (playerid=0, Float:amount=0.23925, issuerid=65535, weaponid=37, bodypart=3, bool:ignore_armour=false) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:4608
[07:35:44] [debug] #3 000688c8 in public LC_OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23925, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:3395
[07:35:44] [debug] #4 000551e8 in public OnPlayerTakeDamage (playerid=0, issuerid=65535, Float:amount=0.23925, weaponid=37, bodypart=3) at D:\games\NFS 2017 Next Build\pawno\include\lagcompnewversion.inc:525
[07:35:44] [debug] Run time error 4: "Array index out of bounds"
[07:35:44] [debug]  Attempted to read/write array element at index 65535 in array of size 421
[07:35:44] [debug] AMX backtrace:
[07:35:44] [debug] #0 001790d8 in public WC_OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.25781, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\gamemodes\NFS_Buss6Updates.pwn:9152
[07:35:44] [debug] #1 00079910 in public OnPlayerDamage (&playerid=@018d4560 0, &Float:amount=@018d4564 0.25781, &issuerid=@018d4568 65535, &weapon=@018d456c 37, &bodypart=@018d4570 3) at D:\games\NFS 2017 Next Build\pawno\include\weapon-config.inc:5448 
this my script OnPlayerDamage
PHP код:

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    if(
playerid != INVALID_PLAYER_ID && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && pSpawned[issuerid] == 1)
    {
        if(
GOD[issuerid] == && canUseKey[issuerid] == true)
        {
            
GameTextForPlayer(playerid"~b~~h~~h~Player has GOD enabled"20003);
            
GetPlayerArmour(issueridA);
            if(
0)
            {
                if(
pPremium[issuerid] == 3SetPlayerArmour(issuerid97);
                else 
SetPlayerArmour(issuerid50);
            }
        }
        if(!
PlayerHit[issuerid] && InEvent[issuerid] == 0)
        {
            
PlayerHit[issuerid] = true;
            
SetPlayerAttachedObject(issuerid81240,2,0.440999,0.000000,0.023000,-1.799999,84.099983,0.000000,1.000000,1.000000,1.000000);
            
SetTimerEx("RemoveHealth"800false"i"issuerid);
            
PlayerPlaySound(playerid178020.00.00.0); //dingding
        
}
    }
      return 
true;

Reply

Hey, I'm having this issue. I created a cmd to kill myself. It does the work, but kinda returns 0 ingame and displays errors in the server. I have them both with SKY.dll from somewhere and one I just compiled on Windows 10.

This is the error:
Код:
[connection] 127.0.0.1:53763 requests connection cookie.
[connection] incoming connection: 127.0.0.1:53763 id: 0
[join] poxer has joined the server (0:127.0.0.1)
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 1000
[debug] AMX backtrace:
[debug] #0 0002a238 in public WC_OnPlayerDeath (playerid=0, killerid=65535, reason=55) at poxeru2.pwn:395
[debug] #1 00018f84 in InflictDamage (playerid=0, Float:amount=0.00000, issuerid=65535, weaponid=55, bodypart=0, bool:ignore_armour=false) at C:\Program Files (x86)\Pawno\include\weapon-config.inc:4762
[debug] #2 000015a0 in WC_SetPlayerHealth (playerid=0, Float:health=0.00000, Float:armour=-1.00000) at C:\Program Files (x86)\Pawno\include\weapon-config.inc:1383
[debug] #3 0002b40c in public cmd_kill (playerid=0, params[]=@006051d0 "") at poxeru2.pwn:545
[debug] #4 native CallLocalFunction () from samp-server.exe
[debug] #5 0001fb48 in public OnPlayerCommandText (playerid=0, cmdtext[]=@006051b8 "/kill") at C:\Program Files (x86)\Pawno\include\zcmd.inc:102
And this is the code:

Код:
CMD:kill(playerid, params[])
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		SendClientMessage(playerid, 0xFF0000FF, "You can't use this command while in a vehicle!");
	}
	else
	{
		SetPlayerHealth(playerid, 0.0);
		PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
	}
	return 1;
}
Thanks in advance.
Reply

Quote:
Originally Posted by poxer
Посмотреть сообщение
Hey, I'm having this issue. I created a cmd to kill myself. It does the work, but kinda returns 0 ingame and displays errors in the server. I have them both with SKY.dll from somewhere and one I just compiled on Windows 10.

This is the error:
Код:
[connection] 127.0.0.1:53763 requests connection cookie.
[connection] incoming connection: 127.0.0.1:53763 id: 0
[join] poxer has joined the server (0:127.0.0.1)
[debug] Run time error 4: "Array index out of bounds"
[debug]  Attempted to read/write array element at index 65535 in array of size 1000
[debug] AMX backtrace:
[debug] #0 0002a238 in public WC_OnPlayerDeath (playerid=0, killerid=65535, reason=55) at poxeru2.pwn:395
[debug] #1 00018f84 in InflictDamage (playerid=0, Float:amount=0.00000, issuerid=65535, weaponid=55, bodypart=0, bool:ignore_armour=false) at C:\Program Files (x86)\Pawno\include\weapon-config.inc:4762
[debug] #2 000015a0 in WC_SetPlayerHealth (playerid=0, Float:health=0.00000, Float:armour=-1.00000) at C:\Program Files (x86)\Pawno\include\weapon-config.inc:1383
[debug] #3 0002b40c in public cmd_kill (playerid=0, params[]=@006051d0 "") at poxeru2.pwn:545
[debug] #4 native CallLocalFunction () from samp-server.exe
[debug] #5 0001fb48 in public OnPlayerCommandText (playerid=0, cmdtext[]=@006051b8 "/kill") at C:\Program Files (x86)\Pawno\include\zcmd.inc:102
And this is the code:

Код:
CMD:kill(playerid, params[])
{
	if(IsPlayerInAnyVehicle(playerid))
	{
		SendClientMessage(playerid, 0xFF0000FF, "You can't use this command while in a vehicle!");
	}
	else
	{
		SetPlayerHealth(playerid, 0.0);
		PlayerPlaySound(playerid, 1190, 0.0, 0.0, 0.0);
	}
	return 1;
}
Thanks in advance.
It might help you if you add the invalid killerid check into your OnPlayerDeath Callback.

Код HTML:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
        //here your OPD Code..
    }
    return 1;
}
//smartphone
Reply

My OnPlayerDeath callback was empty as default. I'll check what you just said later and I'll let you know. Thanks
Reply

pawn Код:
[18:09:17]    Error: Function not registered: 'FreezeSyncData'
[18:09:17]    Error: Function not registered: 'SetFakeFacingAngle'
[18:09:17]    Error: Function not registered: 'SendLastSyncData'
[18:09:17]    Error: Function not registered: 'ClearAnimationsForPlayer'
[18:09:17]    Error: Function not registered: 'SetKnifeSync'
[18:09:17]    Error: Function not registered: 'SetFakeHealth'
[18:09:17]    Error: Function not registered: 'SetFakeArmour'
[18:09:17]    Error: Function not registered: 'PlayerTextDrawSetPosition'
[18:09:17]    Error: Function not registered: 'SpawnPlayerForWorld'
[18:09:17] Script[gamemodes/gamemodes.amx]: Run time error 19: "File or function is not found"
[18:09:17] Number of vehicle models: 0
I've followed the ''how to use'' tutorial and it compiles alright, but I keep getting the same error even when I try with default gamemode.
Reply

Quote:
Originally Posted by ToySoldier
Посмотреть сообщение
pawn Код:
[18:09:17]    Error: Function not registered: 'FreezeSyncData'
[18:09:17]    Error: Function not registered: 'SetFakeFacingAngle'
[18:09:17]    Error: Function not registered: 'SendLastSyncData'
[18:09:17]    Error: Function not registered: 'ClearAnimationsForPlayer'
[18:09:17]    Error: Function not registered: 'SetKnifeSync'
[18:09:17]    Error: Function not registered: 'SetFakeHealth'
[18:09:17]    Error: Function not registered: 'SetFakeArmour'
[18:09:17]    Error: Function not registered: 'PlayerTextDrawSetPosition'
[18:09:17]    Error: Function not registered: 'SpawnPlayerForWorld'
[18:09:17] Script[gamemodes/gamemodes.amx]: Run time error 19: "File or function is not found"
[18:09:17] Number of vehicle models: 0
I've followed the ''how to use'' tutorial and it compiles alright, but I keep getting the same error even when I try with default gamemode.
You need SKY plugin.
https://sampforum.blast.hk/showthread.php?tid=563442
Reply

Thx, know how I can edit deagle damage? When I try it keeps doing zero damage.
Reply

Quote:
Originally Posted by ToySoldier
Посмотреть сообщение
Thx, know how I can edit deagle damage? When I try it keeps doing zero damage.
Directly from the readme:
Quote:
PHP код:
SetWeaponDamage(weaponiddamage_typeFloat:amountFloat:...); 
Modify a weapon's damage

weaponid - The weapon to modify
damage_type - One of the following:
DAMAGE_TYPE_MULTIPLIER Multiply the original damage inflicted by amount This is default for melee, grenades, and other weapons that inflict different amounts of damage (shotguns excluded)
DAMAGE_TYPE_STATIC Inflict a specific amount of damage for each hit For shotguns, this modifies the value for each bullet that hit the player Combat shotgun shoots 8 bullets, other shotguns shoot 15
DAMAGE_TYPE_RANGE_MULTIPLIER Same as DAMAGE_TYPE_MULTIPLIER, but the damage depends on the distance
DAMAGE_TYPE_RANGE Same as DAMAGE_TYPE_STATIC, but the damage depends on the distance
amount - The amount of damage
... - If damage_type contains RANGE, the arguments should be a list of ranges and damage

Reply

Yeah I did read that but only got it working copy pasting an example on page 50 something. Thx anyway. Gonna try to reduce cbug damage now, spend a day or so trying to make sense of something way out of my league, fail miserably, cry a little and then return here to beg for help.
Reply

Quote:
Originally Posted by ToySoldier
Посмотреть сообщение
Yeah I did read that but only got it working copy pasting an example on page 50 something. Thx anyway. Gonna try to reduce cbug damage now, spend a day or so trying to make sense of something way out of my league, fail miserably, cry a little and then return here to ask for help.
Put this in OnPlayerDamage to reduce cbug damage.

PHP код:
        new avg_rate AverageShootRate(issuerid2);
        
        
// Lower rapid fire damage
        
if (avg_rate != -1) {
            if (
weapon == WEAPON_DEAGLE && avg_rate 500)
                
amount *= 0.50;
            else if (
weapon == WEAPON_SHOTGSPA && avg_rate 250)
                
amount *= 0.50;
        } 
Reply

This is my OnPlayerDamage. When I compile with the cbug part my pawn library stops working.
PHP код:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    
/*
     *    Explaining OnPlayerDamage a bit.
     *    OnPlayerDamage is called whenever a player has been damaged, you can use this to modify the amount of damage.
     *    OnPlayerDamage MUST return a value, if you return `1` it will issue the playerid the `amount` on behalf of the `issuerid`, if you return `0` no damage will be issued.
     *    Parameters:
     *        • `playerid`: The player that receives the damage.
     *        • `amount`: The amount of damage that will be issued.
     *        • `issuerid`: The player that issued the damage.
     *        • `weapon`: The weaponid of the weapon that is used to issue the damage.
     *        • `bodypart`: The bodypart that has been damaged/shot, you can use this to make a headshot system or increase/decrease damage depending on bodypart.
     */
    
if(issuerid != INVALID_PLAYER_ID && playerid != INVALID_PLAYER_ID// Check if the issuer (issuerid) is a valid player and the receiver (playerid) is a valid player
    
{
        if(
weapon == 24// Check if the weapon is a deagle
            
amount 32// Set the damage to 32
           
if(weapon == 30// ak47
            
amount 6;
           if(
weapon == 31// m4
            
amount 6;
           if(
weapon == 29// mp5
            
amount 5;
           if(
weapon == 33// rifle cuntgun
            
amount 17;
    }
    return 
1// Return 1 to issue the damage
}
        new 
avg_rate AverageShootRate(issuerid2);
        
// Lower rapid fire damage
        
if (avg_rate != -1) {
            if (
weapon == WEAPON_DEAGLE && avg_rate 500)
                
amount *= 0.50;
            else if (
weapon == WEAPON_SHOTGSPA && avg_rate 250)
                
amount *= 0.50;
        }
    return 
1;

[/QUOTE]
Reply

Quote:
Originally Posted by ToySoldier
Посмотреть сообщение
This is my OnPlayerDamage. When I compile with the cbug part my pawn library stops working.
PHP код:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    
/*
     *    Explaining OnPlayerDamage a bit.
     *    OnPlayerDamage is called whenever a player has been damaged, you can use this to modify the amount of damage.
     *    OnPlayerDamage MUST return a value, if you return `1` it will issue the playerid the `amount` on behalf of the `issuerid`, if you return `0` no damage will be issued.
     *    Parameters:
     *        • `playerid`: The player that receives the damage.
     *        • `amount`: The amount of damage that will be issued.
     *        • `issuerid`: The player that issued the damage.
     *        • `weapon`: The weaponid of the weapon that is used to issue the damage.
     *        • `bodypart`: The bodypart that has been damaged/shot, you can use this to make a headshot system or increase/decrease damage depending on bodypart.
     */
    
if(issuerid != INVALID_PLAYER_ID && playerid != INVALID_PLAYER_ID// Check if the issuer (issuerid) is a valid player and the receiver (playerid) is a valid player
    
{
        if(
weapon == 24// Check if the weapon is a deagle
            
amount 32// Set the damage to 32
           
if(weapon == 30// ak47
            
amount 6;
           if(
weapon == 31// m4
            
amount 6;
           if(
weapon == 29// mp5
            
amount 5;
           if(
weapon == 33// rifle cuntgun
            
amount 17;
    }
    return 
1// Return 1 to issue the damage
}
        new 
avg_rate AverageShootRate(issuerid2);
        
// Lower rapid fire damage
        
if (avg_rate != -1) {
            if (
weapon == WEAPON_DEAGLE && avg_rate 500)
                
amount *= 0.50;
            else if (
weapon == WEAPON_SHOTGSPA && avg_rate 250)
                
amount *= 0.50;
        }
    return 
1;

Change it to this.
PHP код:
public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
    
/*
     *    Explaining OnPlayerDamage a bit.
     *    OnPlayerDamage is called whenever a player has been damaged, you can use this to modify the amount of damage.
     *    OnPlayerDamage MUST return a value, if you return `1` it will issue the playerid the `amount` on behalf of the `issuerid`, if you return `0` no damage will be issued.
     *    Parameters:
     *        • `playerid`: The player that receives the damage.
     *        • `amount`: The amount of damage that will be issued.
     *        • `issuerid`: The player that issued the damage.
     *        • `weapon`: The weaponid of the weapon that is used to issue the damage.
     *        • `bodypart`: The bodypart that has been damaged/shot, you can use this to make a headshot system or increase/decrease damage depending on bodypart.
     */
    
if(issuerid != INVALID_PLAYER_ID && playerid != INVALID_PLAYER_ID// Check if the issuer (issuerid) is a valid player and the receiver (playerid) is a valid player
    
{
        if(
weapon == 24// Check if the weapon is a deagle
            
amount 32// Set the damage to 32
        
if(weapon == 30// ak47
            
amount 6;
        if(
weapon == 31// m4
            
amount 6;
        if(
weapon == 29// mp5
            
amount 5;
        if(
weapon == 33// rifle cuntgun
            
amount 17;
    }
    
    new 
avg_rate AverageShootRate(issuerid2);
    
    
// Lower rapid fire damage
    
if (avg_rate != -1) {
        if (
weapon == WEAPON_DEAGLE && avg_rate 500)
            
amount *= 0.50;
        else if (
weapon == WEAPON_SHOTGSPA && avg_rate 250)
            
amount *= 0.50;
    }
    return 
1// Return 1 to issue the damage

And using the following is not the best way to do custom weapon damage.
PHP код:
    if(issuerid != INVALID_PLAYER_ID && playerid != INVALID_PLAYER_ID// Check if the issuer (issuerid) is a valid player and the receiver (playerid) is a valid player
    
{
        if(
weapon == 24// Check if the weapon is a deagle
            
amount 32// Set the damage to 32
        
if(weapon == 30// ak47
            
amount 6;
        if(
weapon == 31// m4
            
amount 6;
        if(
weapon == 29// mp5
            
amount 5;
        if(
weapon == 33// rifle cuntgun
            
amount 17;
    } 
Instead you should put this somewhere else in your code.

PHP код:
    SetWeaponDamage(WEAPON_DEAGLEDAMAGE_TYPE_STATIC32.0);
    
SetWeaponDamage(WEAPON_AK47DAMAGE_TYPE_STATIC6.0);
    
SetWeaponDamage(WEAPON_M4DAMAGE_TYPE_STATIC6.0);
    
SetWeaponDamage(WEAPON_MP5DAMAGE_TYPE_STATIC5.0);
    
SetWeaponDamage(WEAPON_RIFLEDAMAGE_TYPE_STATIC17.0); 
Reply

Too kind, good sir. Everything is working like a charm now. But until I started using weapon-config I didn't get any warnings. Do you know if these are worth worrying about?

include\weapon-config.inc(339 : warning 219: local variable "hitid" shadows a variable at a preceding level
include\weapon-config.inc(5320) : warning 219: local variable "hour" shadows a variable at a preceding level
include\weapon-config.inc(5320) : warning 219: local variable "minute" shadows a variable at a preceding level
include\weapon-config.inc(5320) : warning 219: local variable "second" shadows a variable at a preceding level
include\seif_walk.inc(5 : warning 201: redefinition of constant/macro (symbol "OnPlayerKeyStateChange")
Reply

Looks like you have the variables "hitid", "hour", "minute", and "second" somewhere else in the code on a global level. Try to correct that or change the variable names inside weapon-config to something else.

And it looks like both weapon-config and seif_walk redefine OnPlayerKeyStateChange, make sure that it is only defined once.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)