Raised This Month: $ Target: $400
 0% 

How to fix this "Run time error"


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 08:47   How to fix this "Run time error"
Reply With Quote #1

In the console i saw this

L 12/07/2015 - 15:28:13: [AMXX] Displaying debug trace (plugin "zp_darkness_zpa.amxx")
L 12/07/2015 - 15:28:13: [AMXX] Run time error 10: native error (native "zp_get_user_zombie")
L 12/07/2015 - 15:28:13: [AMXX] [0] zp_darkness_zpa.sma::lighting_a (line 223)

this code is from line 222 to 225

PHP Code:
    // Add ability health to Zombies
    
if(zp_get_user_zombie(id) || get_pcvar_num(pcv_darkness_zombie_ability)) {
        
set_user_health(idget_user_health(id)+get_pcvar_num(pcv_darkness_give_health))
    } 

Last edited by iLlegalzp; 12-07-2015 at 08:47.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-07-2015 , 11:11   Re: How to fix this "Run time error"
Reply With Quote #2

Code:
    // Add ability health to Zombies
    if(zp_get_user_zombie(id) || get_pcvar_num(pcv_darkness_zombie_ability)) {
        set_user_health(id, get_user_health(id)+get_pcvar_num(pcv_darkness_give_health))
    }
-->
Code:
    // Add ability health to Zombies
    if(is_user_alive(id) && zp_get_user_zombie(id) || get_pcvar_num(pcv_darkness_zombie_ability)) {
        set_user_health(id, get_user_health(id)+get_pcvar_num(pcv_darkness_give_health))
    }
zmd94 is offline
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 11:43   Re: How to fix this "Run time error"
Reply With Quote #3

When i tried to compile the .sma file i got this warning (yes i know so this is only warning but i want to be fix )

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// zp_darkness_zpa.sma
// D:\MOD\cstrike\addons\amxmodx\scripting\zp_da rkness_zpa.sma(223) : warning 217: loose indentation
// Header size: 1452 bytes
// Code size: 11160 bytes
// Data size: 6988 bytes
// Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
// Total requirements: 35984 bytes
//
// 1 Warning.
// Done.
//
// Compilation Time: 0,34 sec
// ----------------------------------------

Press enter to exit ...

Last edited by iLlegalzp; 12-07-2015 at 11:43.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 12-07-2015 , 14:57   Re: How to fix this "Run time error"
Reply With Quote #4

Quote:
Originally Posted by iLlegalzp View Post
When i tried to compile the .sma file i got this warning (yes i know so this is only warning but i want to be fix )

//AMXXPC compile.exe
// by the AMX Mod X Dev Team


//// zp_darkness_zpa.sma
// D:\MOD\cstrike\addons\amxmodx\scripting\zp_da rkness_zpa.sma(223) : warning 217: loose indentation
// Header size: 1452 bytes
// Code size: 11160 bytes
// Data size: 6988 bytes
// Stack/heap size: 16384 bytes; max. usage is unknown, due to recursion
// Total requirements: 35984 bytes
//
// 1 Warning.
// Done.
//
// Compilation Time: 0,34 sec
// ----------------------------------------

Press enter to exit ...
Use TAB instead of space
Your code aligment is not good
milutinke is offline
Send a message via Skype™ to milutinke
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 15:15   Re: How to fix this "Run time error"
Reply With Quote #5

If i upload the code would you fix it ?
__________________
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
milutinke
AlliedModders Donor
Join Date: Jun 2012
Location: Serbia
Old 12-07-2015 , 15:48   Re: How to fix this "Run time error"
Reply With Quote #6

Yes
milutinke is offline
Send a message via Skype™ to milutinke
iLlegalzp
Member
Join Date: Dec 2015
Location: Burgas
Old 12-07-2015 , 15:53   Re: How to fix this "Run time error"
Reply With Quote #7

-DELETED-
__________________

Last edited by iLlegalzp; 12-09-2015 at 06:36.
iLlegalzp is offline
Send a message via Skype™ to iLlegalzp
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode