Raised This Month: $ Target: $400
 0% 

Solved Help - plugin bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 07-30-2017 , 15:52   Help - plugin bug
Reply With Quote #1

Error:
Code:
L 07/30/2017 - 21:27:44: [AMXX] Displaying debug trace (plugin "zp_buy.amxx", version "1.0")
L 07/30/2017 - 21:27:44: [AMXX] Run time error 10: native error (native "pev_valid")
source:
PHP Code:
RegisterHam(Ham_Item_Deploy"weapon_knife""OnDeployKnifePost"1)


public 
OnDeployKnifePost(ent)
{
    new 
id get_pdata_cbase(ent414)

    if(
pev_valid(id) && hasjet[id]) switchmodel(id)

__________________
Free Palestine ♥

Last edited by plazma; 08-04-2017 at 10:42.
plazma is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-31-2017 , 09:33   Re: Help - plugin bug
Reply With Quote #2

PHP Code:
if(pev_valid(id) && hasjet[id]) switchmodel(id
==>

PHP Code:
if(pev_valid(ent) && hasjet[id]) switchmodel(id
__________________
My plugin:
Celena Luna is offline
plazma
Senior Member
Join Date: Oct 2013
Old 08-02-2017 , 06:36   Re: Help - plugin bug
Reply With Quote #3

Quote:
Originally Posted by Celena Luna View Post
PHP Code:
if(pev_valid(id) && hasjet[id]) switchmodel(id
==>

PHP Code:
if(pev_valid(ent) && hasjet[id]) switchmodel(id
OMG!! thank you.
__________________
Free Palestine ♥

Last edited by plazma; 08-02-2017 at 06:37.
plazma 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 23:10.


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