Raised This Month: $ Target: $400
 0% 

Creature Mod (VERSION 1.5)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #32

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
 


Thread Tools
Display Modes

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 20:31.


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