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

Creature Mod (VERSION 1.5)


Post New Thread Reply   
 
Thread Tools Display Modes
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-23-2007 , 20:01   Re: Creature Mod (VERSION 1.5)
Reply With Quote #41

I was fiddling with the code, and I removed some pcvars, and the menu showed worked again, but it gave me a ridiculous number for a price about ($218812) to buy a spider lol. Could the problem be that you have a pcvar named spiderprice, and a private var with the same name in creature menu?

PHP Code:
new spiderprice

public plugin_init()
{
     
spiderprice register_cvar("cm_spiderprice""2000")
}

public 
showCreatureMenu(id)
{
     new 
spiderprice get_pcvar_num(spiderprice)
     
nLen += format(szMenuBody[nLen], 255-nLen"^n\w1. Spider -- USD $%d"spiderprice)

__________________
M249-M4A1 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-23-2007 , 20:13   Re: Creature Mod (VERSION 1.5)
Reply With Quote #42

Because spiderprice is storing the address of the cvar, not the value. Use get_pcvar_* [ex. get_pcvar_num()].
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
stylerro
Senior Member
Join Date: Mar 2007
Old 09-24-2007 , 14:37   Re: Creature Mod (VERSION 1.5)
Reply With Quote #43

"u have dedicated server too? "

yes, linux.
stylerro is offline
totopito
BANNED
Join Date: Apr 2007
Location: In Your Room
Old 09-24-2007 , 18:41   Re: Creature Mod (VERSION 1.5)
Reply With Quote #44

you can't work creature mod ether?
totopito is offline
Send a message via MSN to totopito
Old 09-24-2007, 23:06
M249-M4A1
This message has been deleted by M249-M4A1.
stylerro
Senior Member
Join Date: Mar 2007
Old 09-28-2007 , 02:40   Re: Creature Mod (VERSION 1.5)
Reply With Quote #45

abandonated?
stylerro is offline
totopito
BANNED
Join Date: Apr 2007
Location: In Your Room
Old 09-28-2007 , 23:16   Re: Creature Mod (VERSION 1.5)
Reply With Quote #46

Neji [ClanLess] : /creaturemenu
L 09/28/2007 - 23:14:49: Invalid CVAR pointer
L 09/28/2007 - 23:14:49: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:14:49: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:14:49: [AMXX] [0] 20377.attach::showCreatureMenu (line 8 I Can't get it going script i just can't plus i dont have a module called core and im runnign a cz server
totopito is offline
Send a message via MSN to totopito
totopito
BANNED
Join Date: Apr 2007
Location: In Your Room
Old 09-28-2007 , 23:18   Re: Creature Mod (VERSION 1.5)
Reply With Quote #47

L 09/28/2007 - 23:14:49: Invalid CVAR pointer
L 09/28/2007 - 23:14:49: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:14:49: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:14:49: [AMXX] [0] 20377.attach::showCreatureMenu (line 8
L 09/28/2007 - 23:169: Invalid CVAR pointer
L 09/28/2007 - 23:169: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:169: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:169: [AMXX] [0] 20377.attach::showCreatureMenu (line 8
L 09/28/2007 - 23:176: Invalid CVAR pointer
L 09/28/2007 - 23:176: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:176: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:176: [AMXX] [0] 20377.attach::showCreatureMenu (line 8
totopito is offline
Send a message via MSN to totopito
s3r
Senior Member
Join Date: Aug 2007
Old 01-25-2008 , 14:03   Re: Creature Mod (VERSION 1.5)
Reply With Quote #48

Well looks like that this mod is cursed! first person was unable to update this, and now this plugin author is unable to update to... so stay away from updating this
__________________
PS srr 4 strange enlish
s3r 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 02:33.


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