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

#1
Quote from: Xmair on Nov 15, 2017, 01:17 PMGTA IV is dead
Not entirely.
Quote from: Xenon on Nov 15, 2017, 11:06 PMTry to find this wiki on https://web.archive.org etc. or use VC:MP syntax of this function and see what happens.
VC:MP syntax? Do you mean the coding mentioned inside the source code for the sqlite?
#2
Particularly, the code that I want is shared by zeus, but Its taken from a module. Now the thing I really want is that the code should be scripted in a .nut file( I.e function GetSQLColumnData( DB_Number ).....I dont want a module code. ( Actually I want GetSQLColumnData for Gta IV multuplayer as Its very limited and I dont know how to construct the GetSQLColumnData over there, or in a module ) if creating a module with this code is a possibility( the one zeus shared ) to make It work with Gta IV Multiplayer, It would be appreciated if you tell me how to do so?
#3
Hey, Everyone! Well, I do know It's quite of an off topic, but I really apologize for breaking the terms, and condition, but honestly, I require your urgent help. "GetSQLColumnData" is a common function found in VCMP, but is there anyway that we can construct a function of It with fully SQL coding? If anyone would tell me how to do It or particularly perform It over here, I'd really appreciate It.
like  function GetSQLColumnData( DB, number ) { ....Whole code over here... }
#4
Hey there! I know GTA IV's wiki is already dead, and I could only find few functions regarding sqlite over there. Now I actually want your help to tell me how can I create a function in GTA IV's Squirrel that works the same as this one? I know the forum is completely related to VC, but if anyone of you know how to, I'll honestly appreciate your help.
#5
Off-Topic General / Re: 64 Bit Problem
Nov 09, 2016, 01:55 PM
lel? Not vc-mp for sure..... It's a program after all.... i'm talking about game... like Gta 4... or xenoverse 2?
#6
Off-Topic General / 64 Bit Problem
Oct 31, 2016, 09:19 AM
Well I've done the Windows 7 Ultimate twice/thrice from different disks, but! I can't run any game;therefore, the game is installed, but whenever I run it, it doesn't give me any response at all why that?
#7
Scripting and Server Management / Re: bank
May 06, 2016, 03:35 PM
Quote from: Hercules on May 06, 2016, 03:18 PMhow to block wepons in bank i trying this but not working
player.IsWeaponSyncBlocked = true;
player.CanAttack = toggle;i.e :
if ( YOUR_AREA_FUNCTION =="NAME" ) player.CanAttack = true; if ( YOUR_AREA_FUNCTION !="NAME" ) player.CanAttack = false;
#8
Quote from: Hercules on Apr 27, 2016, 03:13 PM
Quote from: KAKAN on Apr 26, 2016, 05:34 PMNo, according to FAS, the fixed register command should be:
if( cmd == "register" ){
  if( !text ){
   MessagePlayer( "Syntax Error!", player );
   MessagePlayer( "Correct syntax: /register <password>", player );
  }
  else if( pstats[ player.ID ].Logged == true ) MessagePlayer( "You are already logged in.", player );
  else if( pstats[ player.ID ].Level > 0 ) MessagePlayer( "You're already registered.", player );
  else pstats[ player.ID ].Register( player, text, sqliteDB );
 }
is that i try it but not works
if( cmd == "register" ){
  if( text )
         {
       if( pstats[ player.ID ].Logged == false )
          {
    local q = QuerySQL( dbGlobal, "SELECT Name FROM Accounts WHERE Name = '" + player.Name + "' COLLATE NOCASE" );
           if (  GetSQLColumnData( q, 0 ) )
                       { 
                   pstats[ player.ID ].Register( player, text, sqliteDB );
                  }
                      else ClientMessage("Error:You Are Already Registered"player,255,255,0);
                           }
            else ClientMessage("You are already logged in",player,255,255,0);
         }
  else ClientMessage("/" + Cmd + " <_Password>",player,255,255,0);
 }
#9
Quote from: Mr_Motley on Apr 26, 2016, 05:12 PMThis is a register problem, not a login problem.

if( cmd == "register" ){
if( !text ){
MessagePlayer( "Syntax Error!", player );
MessagePlayer( "Correct syntax: /register <password>", player );
}
else if( pstats[ player.ID ].Logged == true ){
MessagePlayer( "You are already logged in.", player );
}
else{
pstats[ player.ID ].Register( player, text, sqliteDB );
}
}

If this is not your issue then once again Upload an image of a registered player in your browser.
if ( cmd =="register")
{
  local q = QuerySQL( DATABASE_NAME, "SELECT * FROM TABLE_NAME WHERE HINT = '" + player.Name + "' COLLATE NOCASE" );
if (  !GetSQLColumnData( q, 0 ) )
                       {
                           if ( text )
                               {
                                 if (  pstats[ player.ID ].Logged == false )
                                  {
                                   pstats[ player.ID ].Register( player, text, sqliteDB );
                          }
               else ClientMessage("You are already logged in",player,255,255,0);
          }
      else ClientMessage("/" + Cmd + " <_Password>",player,255,255,0);
 }
else ClientMessage("Error:You Are Already Registered"player,255,255,0);
}
Well, it was that simple i guess now he just have to compile his script according to this.
#10
Quote from: Doom_Kill3R on Apr 26, 2016, 05:01 PMDamn, my bad, you can edit your previous post, and remove login command, I meant to say your register command.
As far as i thought! we can surely disable it through the command by using, so called COLLATE NOCASE, I hope you got me.
i.e : if ( cmd == "register" )
{
                 local q = QuerySQL( Your_DATABASE, "SELECT * FROM TABLE_NAME WHERE HINT = '" + player.Name + "' COLLATE NOCASE" );
if (  !GetSQLColumnData( q, 0 ) )
                       {
           //Rest of your Functions.
       
}
 else  ClientMessage("Error:You Are Already Registered"player,255,255,0);
}
#12
Quote from: NicusorN5 on Apr 26, 2016, 02:11 PMWhat is the function to change a created car color? `
if ( cmd =="changecolor")
                       {
                          if ( player.Vehicle )
                                  {
                                  local Color = rand() % 94;
                                  ClientMessage("Your Vehicle color has been changed randomly",player,255,255,0);
                                             player.Vehicle.Colour1 = Color;
                                                    }
                                 else ClientMessage("You need to be inside a vehicle to use this command",player,255,255,0);
                  }
Well, i've given this Code before, it's simply the Vehicle.Color1 function could be found at Wiki as well; therefore, Vehicle.Color2 as the another function to change the second custom color of Car.
#14
Servers / Re: [0.4] Cops V/s Criminal City
Apr 26, 2016, 10:36 AM
[CVCC v0.2 RELEASE]
Hello Comrades, i'll like to introduce to you CVCC v0.2; therefore, it's New Updates.....
1.Transfer of Assets: As we know that our Dear Military Officers including Cops, Army, Swat, etc are working really hard, to protect the Citizens, and finish the Crimes, so it's their National right to get Assets, since they can't fight the Criminals without Assets; therefore, Assets are comprised by  : Weapons, Food, Cash, Armour, etc.
Assets are transferred to the Boat_Yard at 9:00, and are taken to the Army headquarters at 13 : 00, but as our Dear Citizens know that Crime never Ends, Criminals can still rob the Assets in the Middle of the 9 : 00 - 13 : 00, so our Dear Cops have to protect it to get the beneficial award; Asset's are going to be sent to them automatically at 13 : 00 where ever they are. Criminals could also export(/exportweapon) the Weapon they have got from the Assets at Ammunation Shop, and get money.
2.Bomb, and Bank System
3.iMedical_Doctor Job has been Added
4.Pizza_Boy Job has been Added

5./eat Command is been Added
6.Suggested Commands : /sur, /sus, /plantid - since players usually get confused that in which Vehicle they have exactly planted the Bomb, i've added /plantid, to clear their confusion.

and many other Astounding updates.
Thank You.
#15
Scripting and Server Management / Re: freeze
Apr 24, 2016, 04:12 AM
Quote from: Ron on Apr 23, 2016, 07:42 PMit works but theres 1 problem in it as it doesnt return the Error msg
else if ( plr.ID == player.ID ) PrivMessage( "Error - You can't /freeze yourself.", player );

and also unfreeze
You are using an old format @Ron; therefore, try this PrivMessage( player, "Error - You can't /freeze yourself");
Well just that the format has been changed.