AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Creature Mod (VERSION 1.5) (https://forums.alliedmods.net/showthread.php?t=61066)

M249-M4A1 09-23-2007 20:01

Re: Creature Mod (VERSION 1.5)
 
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)



Zenith77 09-23-2007 20:13

Re: Creature Mod (VERSION 1.5)
 
Because spiderprice is storing the address of the cvar, not the value. Use get_pcvar_* [ex. get_pcvar_num()].

stylerro 09-24-2007 14:37

Re: Creature Mod (VERSION 1.5)
 
"u have dedicated server too? "

yes, linux.

totopito 09-24-2007 18:41

Re: Creature Mod (VERSION 1.5)
 
you can't work creature mod ether?

stylerro 09-28-2007 02:40

Re: Creature Mod (VERSION 1.5)
 
abandonated?

totopito 09-28-2007 23:16

Re: Creature Mod (VERSION 1.5)
 
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 88) 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 09-28-2007 23:18

Re: Creature Mod (VERSION 1.5)
 
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 88)
L 09/28/2007 - 23:16:39: Invalid CVAR pointer
L 09/28/2007 - 23:16:39: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:16:39: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:16:39: [AMXX] [0] 20377.attach::showCreatureMenu (line 88)
L 09/28/2007 - 23:17:36: Invalid CVAR pointer
L 09/28/2007 - 23:17:36: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/28/2007 - 23:17:36: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/28/2007 - 23:17:36: [AMXX] [0] 20377.attach::showCreatureMenu (line 88)

s3r 01-25-2008 14:03

Re: Creature Mod (VERSION 1.5)
 
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 :D


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

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