Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: ahmedzead on Aug 04, 2018, 06:58 PM

Title: What is That problem ??
Post by: ahmedzead on Aug 04, 2018, 06:58 PM
what is the meaning of this
https://imgur.com/a/Ck88fLz
Title: Re: What is That problem ??
Post by: Magneto on Aug 04, 2018, 07:35 PM
Quote from: ahmedzead on Aug 04, 2018, 06:58 PMwhat is the meaning of this
https://imgur.com/a/Ck88fLz
That means there is a error in main.nut line 40.
Title: Re: What is That problem ??
Post by: . on Aug 04, 2018, 07:47 PM
Quote from: ahmedzead on Aug 04, 2018, 06:58 PMwhat is the meaning of this

Indeed. I would like to ask you the same question. What is the meaning of this?
Title: Re: What is That problem ??
Post by: ahmedzead on Aug 05, 2018, 07:22 AM
This is the function that have the problem

function onPickupPickedUp
{
 if ( pickup.Model == 375 )
      {
 if ( player.WantedLevel > 1 )
{
player.Skin = 2;
player.Colour = RGB( 51, 51, 255 );
player.SetWeapon( 19, 70 );
player.SetWeapon( 25, 150 );
player.SetWeapon( 26, 150 );
}
else MessagePlayer(" You need to clean ur wanted level to join cop duty ", player);  // updated  there can be bug in new update i untested it so u can remove that if its called bug
}
}
Title: Re: What is That problem ??
Post by: ! on Aug 06, 2018, 02:27 PM
Quote from: ahmedzead on Aug 05, 2018, 07:22 AMThis is the function that have the problem

function onPickupPickedUp
{
 if ( pickup.Model == 375 )
      {
 if ( player.WantedLevel > 1 )
{
player.Skin = 2;
player.Colour = RGB( 51, 51, 255 );
player.SetWeapon( 19, 70 );
player.SetWeapon( 25, 150 );
player.SetWeapon( 26, 150 );
}
else MessagePlayer(" You need to clean ur wanted level to join cop duty ", player);  // updated  there can be bug in new update i untested it so u can remove that if its called bug
}
}
function onPickupPickedUp
{
 if ( pickup.Model == 375 )
      {
 if ( player.WantedLevel < 1 )
{
player.Skin = 2;
player.Colour = RGB( 51, 51, 255 );
player.SetWeapon( 19, 70 );
player.SetWeapon( 25, 150 );
player.SetWeapon( 26, 150 );
}
else MessagePlayer(" You need to clean ur wanted level to join cop duty ", player);  // updated  there can be bug in new update i untested it so u can remove that if its called bug
}
}
Stick to play
Title: Re: What is That problem ??
Post by: MatheuS on Aug 06, 2018, 03:17 PM
function onPickupPickedUp( player, pickup )
{
      if ( pickup.Model == 375 )
      {
             if ( player.WantedLevel < 1 )
             {
                   player.Skin = 2;
                   player.Colour = RGB( 51, 51, 255 );
                   player.SetWeapon( 19, 70 );
                   player.SetWeapon( 25, 150 );
                   player.SetWeapon( 26, 150 );
             }
             else MessagePlayer(" You need to clean ur wanted level to join cop duty ", player);  // updated  there can be bug in new update i untested it so u can remove that if its called bug
      }
}