Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Slark__ on Sep 30, 2016, 11:29 AM

Title: lockh problem.. didnt working
Post by: Slark__ on Sep 30, 2016, 11:29 AM
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
   
Title: Re: lockh problem.. didnt working
Post by: KAKAN on Sep 30, 2016, 12:31 PM
Any 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 :)
Title: Re: lockh problem.. didnt working
Post by: 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 !
Title: Re: lockh problem.. didnt working
Post by: 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.
Title: Re: lockh problem.. didnt working
Post by: Slark__ on Oct 02, 2016, 08:26 AM
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