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 - Slark__

#1
Quote from: EK.CrystalBlue on Oct 10, 2016, 12:03 PMThere was a property, you must set it to 'true', it's called object.TrackingBumps
object.TrackingBumps = true;

like that?

function onObjectBump(object, player)
{
if ( object == gate )
{
object.TrackingBumps = true;
MessagePlayer("Hello",player);
}
}
#2
function onObjectBump(object, player)
{
if ( object == gate )
{
MessagePlayer("Hello",player);
}
}

dose not working help pls.
#3
Quote from: Xmair on Oct 09, 2016, 05:55 PMChange
gate = CreateObject(1388, 1, -988.086, -821.651, 8.51289, 255).RotateTo( Quaternion(0, 0, -0.9, -0.866025), 0 );
to
gate = CreateObject(1388, 1, -988.086, -821.651, 8.51289, 255);
gate.RotateTo( Quaternion(0, 0, -0.9, -0.866025), 0 );

ty @Xmair @Jack !
#4
Quote from: Shadow on Oct 09, 2016, 03:04 PM gate <- array( GetMaxPlayers(), null );
 gateStatus = true;
 gate = CreateObject(1388, 1, -988.086, -821.651, 8.51289, 255).RotateTo( Quaternion(0, 0, -0.9, -0.866025), 0 ); // sunshine auto gate 1

gate is defined as two things. This might be part of the issue

Anyhelp?
#5
Quote from: jWeb on Oct 09, 2016, 10:48 AMRIP Documentation
RIP Debugging
RIP Common Sense

if you know how to fix then tell me ?
#6
Quote from: Kewun on Oct 09, 2016, 10:07 AMlol, try gate <- CreateObject instead of gate = CreateObject

and gate.Pos = Vector(x,y,z ) ;



Getting error
#7
Quote from: Kewun on Oct 09, 2016, 09:32 AMchange all .MoveTo to .Pos

Same .Pos Dose not Exist
#8
gateStatus <- array( GetMaxPlayers(), null );

function onServerStart()
{
 gate <- array( GetMaxPlayers(), null );
 gateStatus = true;
 gate = CreateObject(1388, 1, -988.086, -821.651, 8.51289, 255).RotateTo( Quaternion(0, 0, -0.9, -0.866025), 0 ); // sunshine auto gate 1
}

if( key == M )
 {
 if ( InPoly( player.Pos.x, player.Pos.y, -978.048,-841.205,-977.334,-841.178,-976.197,-840.909,-974.864,-840.863,-973.86,-840.772,-972.724,-840.892,-973.484,-840.004,-975.647,-840.611,-977.421,-840.773) )
           {
    Gate( player );
   }
        }

Function :-

function Gate( player )
{
      if ( InPoly( player.Pos.x, player.Pos.y, -978.048,-841.205,-977.334,-841.178,-976.197,-840.909,-974.864,-840.863,-973.86,-840.772,-972.724,-840.892,-973.484,-840.004,-975.647,-840.611,-977.421,-840.773) )
    {
        gate.MoveTo(Vector(-988.086, -821.651, 12.51289), 2800 );
        gateStatus = false;
        }
        else
        {
        if ( gateStatus == false )
        {
            gate.MoveTo(Vector(-988.086, -821.651, 8.51289), 2800 );
            gateStatus = true;
        }
 }         
}



Help me pls
 
#9
Quote from: KAKAN on Oct 02, 2016, 06:07 AM
Quote from: Slark__ on Oct 01, 2016, 02:40 PM
Quote from: KAKAN on Sep 30, 2016, 12:31 PMAny debug info?( did you even try to debug it? )
Anyway, what if the binfo shit doesn't exist?
And too, tell us what's the problem. I think the problem is with the 2nd query. ID is an integer or a string?
Provide me with all the details and I can help you out :)

@KAKAN i'll pm u !
You PM'ed me the wrong thing. I never wanted the commands and its horrible looking at it. You need to figure out what causes the problem. What makes it not to work. Try adding prints to else(if) statements and see where the problem occurs.

Okay i will check then i will send you ss
#10
Quote from: KAKAN on Sep 30, 2016, 12:31 PMAny debug info?( did you even try to debug it? )
Anyway, what if the binfo shit doesn't exist?
And too, tell us what's the problem. I think the problem is with the 2nd query. ID is an integer or a string?
Provide me with all the details and I can help you out :)

@KAKAN i'll pm u !
#11
can help me i create lockh but not working .. and also pickup.alpha not working. ;/

Quoteelse if ( cmd == "lockh" )
   {
   if ( binfo[player.ID].registered==true )
   {
   if ( binfo[player.ID].logged==true )
   {
      if ( player.IsSpawned )
      {
      if ( text )
      {
      local q = QuerySQL( db, "SELECT Owner FROM Sethome WHERE ID LIKE '" + text + "'" );
      if ( GetSQLColumnData( q, 0 ) != player.Name ) MessagePlayer ( RED+"Error - You don't own this House.", player);
        else {
      local pickup = FindPickup(text);
      QuerySQL( db, "UPDATE Sethome SET nogoto = 'on' WHERE ID = '" + text + "'");
      pickup.Alpha = 50;
      MessagePlayer(LGREEN+"You have lock your House.",player);
      }
      }
      else MessagePlayer( "USAGE /"+cmd+"[HouseID].", player);
      }
      else MessagePlayer( "Error - You haven't spawned.", player);
      }
      else MessagePlayer( "Error - You are not logged in.", player);
      }
      else MessagePlayer ( "Error - You haven't registered your nickname.", player);
   }

anyone help me pls
   
#12
Quote from: KAKAN on Sep 29, 2016, 06:41 PM
Quote from: Slark__ on Sep 29, 2016, 06:27 PM
Quote from: Hercules on Sep 29, 2016, 05:47 PMlink of new hashloader
http://vcmp.thijn.ovh/builds/

thanks problem fixed !
one question createsphere, need client script? 
No, you can create it using CreateCheckpoint I guess. You need to pass a boolean value to an parameter of that function :D
Quote from: Anik on Sep 30, 2016, 06:09 AMhttp://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/CreateCheckpoint

ty both :)
#13
Quote from: KAKAN on Sep 30, 2016, 07:58 AM
Quote from: Anik on Sep 30, 2016, 06:05 AMYou have exited the vehicle then how can the model exist??
because in the locals, vehicle is still a instance of the vehicle which the player was using.

tY problem fixed !
#14
Quote from: Hercules on Sep 29, 2016, 05:47 PMlink of new hashloader
http://vcmp.thijn.ovh/builds/

thanks problem fixed !
one question createsphere, need client script? 
#15
Quote from: MatheuS on Sep 29, 2016, 04:59 PMI think it's this:
Textdraw <- CreateTextdraw( "" + GetVehicleNameFromModel( player.Vehicle.Model ) + "", 100, 100, 0xFF00BFFF);
Textdraw <- CreateTextdraw( "" + GetVehicleNameFromModel( player.Vehicle.Model() ) + "", 100, 100, 0xFF00BFFF);



not working model does exist