Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Nihongo^

#91
Quote from: Gito Baloch on Apr 12, 2023, 12:27 PM
Quote from: Nihongo^ on Apr 12, 2023, 07:30 AMP.S Also i tried Pickup.Remove(); but giving the same error

What error does it show when you remove Pickup.remove()?
Pickup does not exist
#92
Hi i am getting this error when the race get canceled when no one join it



here's the line 64



function closerace() {
    Message( "Race cancelled!" );
    race = false;
 racestart = false;
    racecount = 0;

 Vehicle1.Remove();
 Vehicle2.Remove();
 Vehicle3.Remove();
 Vehicle4.Remove();

 Checkpoint0.Remove();
 Checkpoint1.Remove();
 Checkpoint2.Remove();
 Checkpoint3.Remove();
 Checkpoint4.Remove();
 Checkpoint5.Remove();
 Checkpoint6.Remove();
 Checkpoint7.Remove();
 Checkpoint8.Remove();
 Checkpoint9.Remove();
 Checkpoint10.Remove();

 RPickup.Remove();
 
 for( local i=0; i<1000; i++ ){
 DestroyMarker( i );
 }
 
    local plr;
    for( local i=0; i <= GetMaxPlayers(); i++ ){
  {
      plr = FindPlayer( i );
      if ( plr )
            {
    if( Stats[ plr.ID ].raceplayer )
    {
                    Stats[ plr.ID ].raceplayer = false;
                    plr.IsFrozen = false;
                    plr.Pos = Vector( 496.26, -83.9443, 10.0302  );
    }
            }
        }
 }

}


P.S Also i tried Pickup.Remove(); but giving the same error
#93
Quote from: habi on Apr 05, 2023, 10:14 PMShow your onPlayerCommand function for cmd == "car".

  else if ( ( cmd == "car" ) || ( cmd == "veh" ) )
{
  if ( !player.IsSpawned ) ErrorMessage("[#FF0000][Server] - [#FFFFFF]You need to be spawned to use this command.", player );
  else if ( !player.Vehicle ) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]You need to be in a vehicle to use this command", player );
  else
  {
    local veh = player.Vehicle.ID;
    VehicleInfo( player, veh );
   
  }
}
#94
Script read the data from the database

I removed tank and hunter from the database ( ID 132 and 136 ) after that whenever someone type /car it gives this error ( its gives error on some vehicles )

when i used my old database ( which contain tank and hunter ) the function works fine and give the details of every cars

Kindly suggest me what i do now ? i don't want to put back tank and hunter

p.s when i type admin command /spawncar 132 its spawn tank if i remove tank from the database it spawn pizza bike (which gives error)

Quotefunction VehicleInfo( player, veh )
{
  local Query = QuerySQL(vdb, "SELECT * FROM Vehicles WHERE VehID = '"+veh+"' " ),
    VehMod = GetSQLColumnData( Query, 0 ),
    VehOwner = GetSQLColumnData( Query, 4 ),
    VehCost = GetSQLColumnData( Query, 5 ),
    VehShared = GetSQLColumnData( Query, 6 ),
  VehID = GetSQLColumnData( Query, 7 ),
  HP = player.Vehicle.Health / 10;

    SendMessage( "Vehicle: "+GetVehicleNameFromModel( VehMod )+", ID: "+VehID+", Health: "+HP+" Price: "+VehCost+", Owner: "+VehOwner+", Shared With: "+VehShared+".", player );

FreeSQLQuery( Query );
}

#95
Thanks  Athanatos problem solved :)
#96
Quote from: Athanatos on Jul 15, 2022, 01:02 AMstatus[ killer.ID ] is null. Initialize it when joining inside the onPlayerJoin() function.
Can you give any example how ?
Because
status[ killer.ID ].Kills++;  work perfectly

but when i put
status[ killer.ID ].Headshots++; Its give error same with the Joins++;
#97
Why i keep getting this error when i join server its giving me the same error OnPlayerKill function when i headshot

status[ killer.ID ].Headshots++;
#98
Support / Re: Adding discord in server
Jun 20, 2022, 04:19 PM
Quote from: habi on Jun 20, 2022, 04:07 PMPut :: before ClientMessageToAll.
::ClientMessageToAll( );
Oh wow its works thank you so much for the help
God blase you
you just solve my problem :)
#99
Support / Re: Adding discord in server
Jun 20, 2022, 03:26 PM
Sorry still giving the same error after putting the comma
#100
Support / Re: Adding discord in server
Jun 20, 2022, 01:59 PM
Hi i tried Message function of squirrel but its gives error here .

#101
Support / Re: Adding discord in server
Jun 20, 2022, 04:57 AM
Thank you so much its works for me I modified the code and now I can see the role too

I have 2 more questions how do I send this message to the server? I mean its printing on the console only

and what role for the normal player?

I tried to make this but didn't work

if(role=="moderator"||role=="admin"||role=="Owner")
 {
  print("[Discord]" +role+ "" +member.User.Username+": "+text);
  }
  else
  {
  print("Memeber" +member.User.Username+": "+text);
  break;
 }
#102
Support / Re: Adding discord in server
Jun 19, 2022, 03:04 PM
I forgot to ask about sending messages in the server from discord.
like !say<text>. with discord rank
#103
Support / Re: Adding discord in server
Jun 19, 2022, 01:59 PM
Its worked Thank you so much habi
#104
Support / Re: Adding discord in server
Jun 19, 2022, 11:05 AM
I did some research and found this
https://forum.vc-mp.org/?topic=8869.msg52280#msg52280

I am successfully recevnig the message on my console what ever i am writing on discord. But i am confused how do i send messages in server when i type on discord ? and same discord to server

Please guide me on it
thank you
#105
Support / Re: Adding discord in server
Jun 18, 2022, 01:07 PM
Quote from: habi on Jun 18, 2022, 12:30 PMAdd
print(session);just before line 32.
This is to know if variable session is null.


Thanks for you kind reply. It said 0x0000