Post: Why isn't this working?
07-13-2015, 12:00 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I'm trying to add killstreaks to bo2 zombieland but for some reason it's not requiring a cost whenever I'm trying to purchase it, it's just free
Here's the code I'm using
    GiveRC()
{
if (self.money >= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"])
{
self GiveKillstreak("killstreak_rcbomb");
self iPrintln("RC-XD Given");
self.money -= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"];
}
else
self SendError("MoreMoney");
}


and

    level.itemPrice["Human"]["Killstreaks"]["RCXD"] = 10;
(adsbygoogle = window.adsbygoogle || []).push({});
07-13-2015, 12:07 AM #2
Originally posted by HorrifyHosts View Post
I'm trying to add killstreaks to bo2 zombieland but for some reason it's not requiring a cost whenever I'm trying to purchase it, it's just free
Here's the code I'm using
    GiveRC()
{
if (self.money >= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"])
{
self GiveKillstreak("killstreak_rcbomb");
self iPrintln("RC-XD Given");
self.money -= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"];
}
else
self SendError("MoreMoney");
}


and

    level.itemPrice["Human"]["Killstreaks"]["RCXD"] = 10;

What's this "status" dimension for? The one in your function is four dimension while the part where you initialize the price is only 3. Try adding the status dimension to the price or removing it from your GiveRC function
07-13-2015, 12:21 AM #3
Originally posted by John View Post
What's this "status" dimension for? The one in your function is four dimension while the part where you initialize the price is only 3. Try adding the status dimension to the price or removing it from your GiveRC function


About to test this out right now, hopefully it's that easy
07-13-2015, 12:22 AM #4
Originally posted by HorrifyHosts View Post
About to test this out right now, hopefully it's that easy

Good luck, quote me or something and lmk if it works out
07-13-2015, 12:30 AM #5
Originally posted by John View Post
Good luck, quote me or something and lmk if it works out


Unfortunately having the exact same issue, didn't change anything :\
07-13-2015, 12:31 AM #6
Originally posted by HorrifyHosts View Post
Unfortunately having the exact same issue, didn't change anything :\

Aha, if you could pm me the full code or something, I can try to help it
07-14-2015, 02:13 PM #7
Still looking for help with this
07-14-2015, 04:08 PM #8
Here m8
    GiveRC()
{
if (self.money >= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"])
{
self.money -= level.itemPrice[status]["Human"]["Killstreaks"]["RCXD"];
self GiveKillstreak("killstreak_rcbomb");
self iPrintln("RC-XD Given");
}
else
self SendError("MoreMoney");
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo