Raised This Month: $12 Target: $400
 3% 

[Orpheu] Invalid parameter count


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-23-2011 , 12:44   Re: [Orpheu] Invalid parameter count
Reply With Quote #11

The problem about "Invalid parameters count", is because you forget to provide the pointer to the CGib class. But here CGib is just a class without being associated with an entity, thus you can pass 0 safely, it should work. In the code, you see well the first line anyway : "CGib *pGib = GetClassPtr( (CGib *)NULL );" , so : OrpheuCall(FwdSpawnHeadGib, 0, id);

About Vector, yes, the way orpheu is, not possible.
__________________
Arkshine is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-23-2011 , 13:30   Re: [Orpheu] Invalid parameter count
Reply With Quote #12

When i use 0 as second parameter, it gives me this runtime error:
Code:
L 09/23/2011 - 19:29:11: [ORPHEU] Entity "0" out of range
L 09/23/2011 - 19:29:11: [AMXX] Displaying debug trace (plugin "test.amxx")
L 09/23/2011 - 19:29:11: [AMXX] Run time error 10: native error (native "OrpheuCallSuper")
If i use id instead, it works.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-23-2011 , 13:59   Re: [Orpheu] Invalid parameter count
Reply With Quote #13

Actually It doesn't matter the value used, just need so value > 0 because orpheu seems to have some check. So, yes, using id, id, or 1, id, or 1337, id, should work.
__________________
Arkshine is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 09-23-2011 , 14:02   Re: [Orpheu] Invalid parameter count
Reply With Quote #14

Okay, thanks for your help.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 10:05.


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