Post: Why will this not work?
01-25-2011, 08:56 PM #1
d7w7z
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); EDIT - Problem fixed thanks to EliteMossy.

Im having a little trouble fixing this code I made. The problem is everytime I pick an option I will be given Normal bullets which is the first option. /facepalm

Menu
    menu.name[menu.name.size] = "Bullet Mods";
menu.name[menu.name.size] = "Normal";
menu.name[menu.name.size] = "Explosive";
menu.name[menu.name.size] = "AT-4";
menu.name[menu.name.size] = "RPG";
menu.name[menu.name.size] = "Grenades";
menu.function[menu.function.size+1] = ::ModB;
menu.function[menu.function.size+1] = ::ModB;
menu.function[menu.function.size+1] = ::ModB;
menu.function[menu.function.size+1] = ::ModB;
menu.function[menu.function.size+1] = ::ModB;
menu.input[menu.input.size+1] = "1";
menu.input[menu.input.size+1] = "2";
menu.input[menu.input.size+1] = "3";
menu.input[menu.input.size+1] = "4";
menu.input[menu.input.size+1] = "5";


First part of the code.
    ModB( C ) {
self.BMod=C;
if (self.BMod==1) { txtB( "Normal" );SN("StopMagicBullets"); }
else if (self.BMod==2) { txtB( "Explosive" );SN("StopMagicBullets");wait 0.1;self thread ExplosiveBullets(); }
else if (self.BMod==3) { txtB( "AT-4" );ModBullet( "at4_mp" ); }


Anyone know why self.BMod's value isnt changing? :mad:
(adsbygoogle = window.adsbygoogle || []).push({});
01-25-2011, 09:01 PM #2
EliteMossy
TheDigitalBoard.com
because you are sending "1" which is a string, not a int

if (self.BMod=="1") would work a treat
01-25-2011, 09:08 PM #3
d7w7z
Bounty hunter
Originally posted by TheEliteMossy View Post
because you are sending "1" which is a string, not a int

if (self.BMod=="1") would work a treat

aaahh, Ok. Thanks for the help. I could use this as well couldn't I?
    if (C=="1") {
01-25-2011, 09:17 PM #4
EliteMossy
TheDigitalBoard.com
of course lol Smile
01-25-2011, 09:21 PM #5
hey elite whats upp hey man can u add me in ps3 please psn: Peyi1 when are u going to realease ur patch??
01-25-2011, 09:25 PM #6
d7w7z
Bounty hunter
Originally posted by TheEliteMossy View Post
of course lol Smile

Cheers lol, I want to Thank you but Im all out. :mad:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo