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 - Mötley

#751
The code I posted saves data to a players name. Example: you register, when you register you will have what is considered an account. The file will save as your username. Giving you separate data from others. And with a timer I could have the data save one line at a time allowing the save file to save correctly. as well as weapon ammo to stay updated/saved every 5 minutes.


I am going to continue to work on my account system/base script. but i need that module as i can not find it

[The code again]

ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );
#752
Quote from: Doom_Kill3R on Mar 05, 2016, 07:07 AMDon't use INIs Motley. The official INI plugin is totally screwed up and has alot of deficiencies. Just don't use it. For instance the way it stores data is totally messed up. Your data might be corrupted if it involves brackets.

Use either SQLite for lower purposes and MySQL if you need a higher priority.

Only issue is my scripting where it stands can't handle the concept due to I don't have a understanding of it
( what i have seen i fully discourage).
I only know how to script normaly.

Was this module tested by the owner before releasing?

I would like to bug test yet stress test that module. as scripting can improve these types of issues.

If i can not get this to work out
(as nothing else has) I'll find another project else's where as my scripting capabilities keep getting limited every few posts.

There is always issues for me every turn I make. no offense...

also no offense I Refuse to not use SQLite, MySQL. 

I just wanted to build a server/System/base script.

something i can call mine( unique )

This is just depressing. what's next :/
#753
Okay LOL NOW I think i can bypass and began my build with

ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );
but i am having issues with ReadIniInteger trying to find a module..


function Loggedin ( player, Password ) {

if ( Password ( player ) != "" )
{
if ( Account [ player.ID ].Logged == false )
{
if ( Password )
{
if ( WHIRLPOOL ( Password )
{
local Cash = ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );
//etc


Please Let me know if someone beats me to finding the module.
#754
Only checked due to i have Windows XP and security is low on XP
#755
Quote from: Thijn on Mar 04, 2016, 08:33 PMYou guys are mixing two things here.

The hash system Mr_Motley is talking about has nothing to do with hashing passwords. They were an old method of saving data to files in VC:MP and LU.
AdTec has ported the old functionality for 0.4: http://forum.vc-mp.org/?topic=206.0
This plugin may or may not work anymore. If not, I will see if I can recompile it to make it work for more recent server updates.

While pretty much no one uses that hash method, you are free to check it out. Although I think there's going to be more support by using the database systems linked above: SQLite and MySQL. It's just a matter of getting used to, I guess.

found this in the really old post

Quote from: FarisDon. on July 13, 2014, 10:03:46 pm
(1)can we uplode these hsh,SQL.dll to work it on Our new beta Version 0.4
or else it will not connect us???
Only 0.4 plugins will work with 0.4 servers. R2 plugins do not work with 0.4 servers.

Quote
And Yes if i uplode these Things it will not work on the old version -.-?
No.

Quote from: S.L.C on July 13, 2014, 10:06:50 pm
Quote from: stormeus on July 13, 2014, 09:13:30 pm
Try the VS2013 runtimes.
http://www.microsoft.com/en-us/download/details.aspx?id=40784

Hmmm... same error. The game process doesn't even start :-\
Are you getting any specific errors?

I can not create a server until this is cleared. cant wait. After added support is added I will create a base script and should have it done in two weeks and release,

Cant Script without it ;p
#756
Makes since
#757
Quote from: Thijn on Mar 04, 2016, 08:33 PMYou guys are mixing two things here.

The hash system Mr_Motley is talking about has nothing to do with hashing passwords. They were an old method of saving data to files in VC:MP and LU.
AdTec has ported the old functionality for 0.4: http://forum.vc-mp.org/?topic=206.0
This plugin may or may not work anymore. If not, I will see if I can recompile it to make it work for more recent server updates.

While pretty much no one uses that hash method, you are free to check it out. Although I think there's going to be more support by using the database systems linked above: SQLite and MySQL. It's just a matter of getting used to, I guess.

Yes I am extremely confused, I do not Blame KAKAN, He has gone beyond his way in every type of way to help me big KUDDOS to him.

Please is this anything like create hashes, close hashes,hsh.del, hsh.get, hsh.add, etc. if so some type of examples or really old scripts with this would be helpful [ not saying the entire script just to use as examples.
Now to create a base script to upload and to use as my own, I would extremely need that Hashing plugin!! [Even if i need to pay you real cash  {Not a joke}

My scripting is a lot like Force's Thijn.
some like VRocker's as well.

I tried to Use DJ Java Decompiler 3.12, and it failed to load everything. not often that happens. only said "VM"

Quote from: Stormeus on Mar 04, 2016, 08:34 PM
Quote from: Mr_Motley on Mar 04, 2016, 08:08 PMI just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.

When the server was created, we decided to keep everything aside from the core functionality of the netgame in plugins. It makes it easier to maintain the core server functionality as well as the plugins. Although some of the plugins are officially maintained by developers, it also allows the community to develop drop-in replacements and additional scripting languages as they please.

The SA:MP and LU servers also add unnecessary overhead by forcing everything to go through the Pawn and Squirrel APIs. The best example I can think of is someone had developed a plugin that allowed people to use Squirrel scripts in SA:MP, but because the only plugin API required going through the Pawn API, the performance was substantially worse than if you had just used Pawn.

This make's a lot of since, I may be wrong,

Lets say lets say VCMP developers are far to busy to fix bugs, exploits, or updates. Then someone can attempt to manually fix things and or add support depending on what that is? etc
#758
Always the hackers that make things worse[Makes since] . :p

http://forum.vc-mp.org/?topic=1007.msg6562#msg6562

those are the style of hashes i am seeking to be able to use
#759
I will have a look.

[Not Hating against VCMP]

I just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.

Rather irritating.
#760
Thank you KAKAN!!!

So? it is more of the content strings? than creating a file database?
#761
Quote from: KAKAN on Mar 04, 2016, 06:37 PM
Quote from: Mr_Motley on Mar 04, 2016, 06:32 PM
Quote from: Kusanagi on Mar 04, 2016, 06:25 PM
Quote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32

This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29

I really appreciate that, o_O     Only issue is there is no text/ examples there. Looks like i will have to find out the hard way and request to upload mine as an example.
I'm trying to update the wiki. Trying all the functions 1 by 1 then updating.

Really appreciate that thank you!!!. If there is anything i can help you with just share a function or etc.
#762
Quote from: Kusanagi on Mar 04, 2016, 06:25 PM
Quote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32

This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29

I really appreciate that, o_O     Only issue is there is no text/ examples there. Looks like i will have to find out the hard way and request to upload mine as an example.
#763
Okay, Sorry KAKAN.

I have been studying these built in func on the wiki since last night,They are just taking a while to remember and get a idea with what i already know.. The scripting is a exact at a A++ Percentage. Just different built func names, that's mainly what i am trying to get/understand,

Other than that, Configure my server to a level I understand, Yet a server that is simple to update i do not want to look at it and feel like I am looking at nuclear codes . lel


 
#764
Quote from: KAKAN on Mar 04, 2016, 04:17 PMhttp://forum.vc-mp.org/?topic=206.0
That may help you, though I never tested it.
Well, you can make a class exactly same to your hash class, but use a DATABASE instead of a file inside it. Hope you got me

Database? just slightly confusing. 

rwwpl might be helpful as he is a LU scripter and will possible understand what i know, and need to know. i like to script and get creative. bypass needing modules etc. im looking for examples
#765
Thank you KAKAN I am a huge hasher xD example
**code select messed up the code ,to lazy to modify
 
     
    else if ( ( cmd == "spawncar" ) || ( cmd == "spawn" ) || ( cmd == "c" ) || ( cmd == "vehicle" ) || ( cmd == "veh" ) || ( cmd == "v" ) )
    {
   local car = Car.Get( player.Name + "Car" );
   if ( car ) MessagePlayer( "*You Must Wait", player );
   else if ( !car )
   {
          if ( player.Vehicle )return false;
          {
     if ( text )
     {
     local pTemp = split( text, " " ), ID = 90;
     if ( IsNum( pTemp[ 0 ] ) ) ID = pTemp[ 0 ].tointeger();
     if ( ( ID >= 90 ) && ( ID <= 150 ) )
     {
    local vehicle = CreateVehicle( ID, Vector(player.Pos.x, player.Pos.y + 1, player.Pos.z), player.Angle);
    if ( vehicle ) player.Vehicle = vehicle;
                vehicle.OneTime = true;
    MessagePlayer( "[#ff0000]* Vehicle spawned: " + vehicle.Model, player );
Car.Add( player.Name + "Car", 1 );
     }
     else MessagePlayer( "Forbiden Vehicle ID", player, Colour ( 255, 255, 255 ) );
     }
     else MessagePlayer( "Forbiden Vehicle ID, Please Try Again", player, Colour ( 255, 255, 255 ) );
     }
         NewTimer( "NewVeh", 10000, 1);
function NewVeh()
{
            Car.Del( player.Name + "Car" );
            MessagePlayer( "*You may now create a new Vehicle", player, Colour ( 131, 114, 5 ) );
PlayFrontEndSound(player, 160);
         }
       }
    }
   
I will also look into that plugin