Raised This Month: $ Target: $400
 0% 

[Help] plz run time error 4


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 06-25-2010 , 08:49   [Help] plz run time error 4
Reply With Quote #1

hi never regonized this error befor look yesterday in logs
and saw this error !!! somthin with array wrong ??

this is the error line
PHP Code:
 if(!is_plr_alive[id]) 
PHP Code:
new is_plr_alive[33]

public 
fw_UseButton(iEntid)
{
    if(!
iEnt || id 32)
        return 
FMRES_IGNORED
    
    
if(!is_plr_alive[id])
        return 
FMRES_IGNORED

can it be that i must use it like this
PHP Code:
if(!is_plr_alive[id-1]) 
__________________

Last edited by vato loco [GE-S]; 06-25-2010 at 08:53.
vato loco [GE-S] is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 06-25-2010 , 08:51   Re: [Help] plz run time error 4
Reply With Quote #2

I have no idea what you just asked. But, put debug after the plugin name in your plugins.ini and copy and paste that error here.
RedRobster is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 06-25-2010 , 08:57   Re: [Help] plz run time error 4
Reply With Quote #3

i have already debug mode on but i delet the log file hehe

and change for testing this
PHP Code:
if(!is_plr_alive[id-1]) 
and till now no error log but it can still happen
because change it maybe 20 min ago
__________________
vato loco [GE-S] is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 06-25-2010 , 08:59   Re: [Help] plz run time error 4
Reply With Quote #4

@ GXLZPGX

do you want to say it's better in this case to use
PHP Code:
!is_user_alive(id
i'm using is_plr_alive[id] in my whole plugin

only this line up make probs
__________________

Last edited by vato loco [GE-S]; 06-25-2010 at 09:03.
vato loco [GE-S] is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-25-2010 , 09:05   Re: [Help] plz run time error 4
Reply With Quote #5

Quote:
Originally Posted by vato loco [GE-S] View Post
@ GXLZPGX

do you want to say it's better in this case to use
PHP Code:
!is_user_alive(id
i'm using is_plr_alive[id] in my whole plugin

only this line up make probs
Its worth a try.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 06-25-2010 , 09:17   Re: [Help] plz run time error 4
Reply With Quote #6

it seem to be the most easyest way to solve the problem
__________________
vato loco [GE-S] is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-25-2010 , 08:54   Re: [Help] plz run time error 4
Reply With Quote #7

Quote:
Originally Posted by vato loco [GE-S] View Post
hi never regonized this error befor look yesterday in logs
and saw this error !!! somthin with array wrong ??
PHP Code:
new is_plr_alive[33
this is the error
PHP Code:
if(!is_plr_alive[id])public fw_UseButton(iEntid)
{
    if(!
iEnt || id 32)
        return 
FMRES_IGNORED
    
if(!is_plr_alive[id])
        return 
FMRES_IGNORED

can it be that i must use it like this
PHP Code:
if(!is_plr_alive[id-1]) 
First of all, don't make your own array for that.. use:

!is_player_alive(id)
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Reply



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 14:51.


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