Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help VIP features
#11
(08-08-2012, 12:41)Killer_xD Wrote: it show me an error at
Quote:if(self.guid == "11000010471f66e")
but i dont know why, pls help me Heart

Try:
Code:
if(self.guid == "011000010471f66e")

Because the GUID/XUID must be 16 letters. And as I know the first is always 0.
Reply

#12
thx this run now but now i have a other problem its a } but i cant find it, maybe you can help me Smile

Quote:Vip()
{
if(self.guid == "011000010471f66e")
{
lolol = randomInt(4);

if(lolol == 0)
{
self giveWeapon ("mpl_mp", 0, self calcWeaponOptions (15, 0, 0, 0, 0 ));
self giveWeapon ("asp_mp");
self giveWeapon ("knife_mp");
self giveMaxAmmo("asp_mp");
self giveWeapon ("ray_gun_zm");
self giveWeapon ("thundergun_zm");
self giveWeapon ("tesla_gun_zm");
}
else if(lolol == 1)
{
self giveWeapon ("mp5k_mp", 0, self calcWeaponOptions (15, 0, 0, 0, 0 ));
self giveWeapon ("asp_mp");
self giveWeapon ("knife_mp");
self giveMaxAmmo("asp_mp");
self giveWeapon ("ray_gun_zm");
self giveWeapon ("thundergun_zm");
self giveWeapon ("tesla_gun_zm");
}
else if(lolol == 2)
{
self giveWeapon ("spectre_mp", 0, self calcWeaponOptions (15, 0, 0, 0, 0 ));
self giveWeapon ("asp_mp");
self giveWeapon ("knife_mp");
self giveMaxAmmo("asp_mp");
self giveWeapon ("ray_gun_zm");
self giveWeapon ("thundergun_zm");
self giveWeapon ("tesla_gun_zm");
}
else if(lolol == 3)
{
self giveWeapon ("kiparis_mp", 0, self calcWeaponOptions (15, 0, 0, 0, 0 ));
self giveWeapon ("asp_mp");
self giveWeapon ("knife_mp");
self giveMaxAmmo("asp_mp");
self giveWeapon ("ray_gun_zm");
self giveWeapon ("thundergun_zm");
self giveWeapon ("tesla_gun_zm");
}
}

i hope you find my problem, thx for help Me Gusta
Reply

#13
(08-08-2012, 17:45)Killer_xD Wrote: thx this run now but now i have a other problem its a } but i cant find it, maybe you can help me Smile

Quote:sh.tcodehere

i hope you find my problem, thx for help Me Gusta

Do not use "Quote" for codes Dumb Bitch
Use "Code" or "PHP"

As I see this is a BO mod (asp, kiparis etc gun names), so why do you have asked it in the MW2 section?

You have forgot to close the first "if":
PHP Code:
Vip()
{
    if(
self.guid == "011000010471f66e")
    {
        
lolol randomInt(4);
    }  
// <-You forgot to close this
    
    
if(lolol == 0)
    {
        
self giveWeapon ("mpl_mp"0self calcWeaponOptions (15000));
        
self giveWeapon ("asp_mp");
        
self giveWeapon ("knife_mp");
        
self giveMaxAmmo("asp_mp");
        
self giveWeapon ("ray_gun_zm");
        
self giveWeapon ("thundergun_zm");
        
self giveWeapon ("tesla_gun_zm");
    }
    
    else if(
lolol == 1)
    {
        
self giveWeapon ("mp5k_mp"0self calcWeaponOptions (15000));
        
self giveWeapon ("asp_mp");
        
self giveWeapon ("knife_mp");
        
self giveMaxAmmo("asp_mp");
        
self giveWeapon ("ray_gun_zm");
        
self giveWeapon ("thundergun_zm");
        
self giveWeapon ("tesla_gun_zm");
    }
    else if(
lolol == 2)
    
    {
        
self giveWeapon ("spectre_mp"0self calcWeaponOptions (15000));
        
self giveWeapon ("asp_mp");
        
self giveWeapon ("knife_mp");
        
self giveMaxAmmo("asp_mp");
        
self giveWeapon ("ray_gun_zm");
        
self giveWeapon ("thundergun_zm");
        
self giveWeapon ("tesla_gun_zm");
    }
    else if(
lolol == 3)
    
    {
        
self giveWeapon ("kiparis_mp"0self calcWeaponOptions (15000));
        
self giveWeapon ("asp_mp");
        
self giveWeapon ("knife_mp");
        
self giveMaxAmmo("asp_mp");
        
self giveWeapon ("ray_gun_zm");
        
self giveWeapon ("thundergun_zm");
        
self giveWeapon ("tesla_gun_zm");
    }

Reply

#14
oh sry i didnt know... i just typed in google black ops vip and then comes this problem :/

but i pasted your code in my _rank and it show me this error
Code:
server script compile error uninitialised variable 'lolol' maps/mp/gametypes/_rank.gsc(1484) if(lolol == 0)
Reply

#15
(08-08-2012, 18:16)Killer_xD Wrote: but i pasted your code in my _rank and it show me this error
Code:
server script compile error uninitialised variable 'lolol' maps/mp/gametypes/_rank.gsc(1484) if(lolol == 0)

Add this to onPlayerConnect() before "player thread onPlayerSpawned();"
Code:
player.lolol = randomInt(0);
or
Code:
player.lolol = 0;
Reply

#16
i tried both codes but it comes ever the same error

Code:
server script compile error uninitialised variable 'lolol' maps/mp/gametypes/_rank.gsc(1484) if(lolol == 0)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] MW3 ChromatiX 2.2.1 [Texture Hack with Installer and Additional Features] - Steam/aIW House 99 140,622 04-17-2013, 22:31
Last Post: lordevil10
  mod features dafiz 8 3,969 01-28-2013, 11:50
Last Post: dafiz
  [Request] New features that are possible according to @zxz0o0 AND NEED TO BE IMPLENTED JariZ 30 11,227 04-21-2012, 09:44
Last Post: master131
  [Release] MW3 ChromatiX 2.1 [Texture Hack with Auto-Installer and Additional Features] - FIXED House 46 87,661 02-01-2012, 11:29
Last Post: d0h!
  Future version features AZUMIKKEL 7 4,562 09-08-2011, 15:44
Last Post: AZUMIKKEL
  Preview =D Drugs Dealers Mod + Bunker Modded Map + Features list Robyrq 9 5,531 07-21-2011, 11:22
Last Post: Robyrq
  [News] Call of Duty Elite free features detailed, even haters can play for free aosma8 0 2,624 06-07-2011, 10:08
Last Post: aosma8
  [News] Call Of Duty : Elite Features Analysis (Part 1 and 2) aosma8 1 2,008 06-05-2011, 08:36
Last Post: armeenzzz

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.