Liberty Unleashed
Scripting => Script Help => Topic started by: _YaZeEn_ on December 17, 2011, 11:39:23 am
-
I am making a server from 0.
Hashes functions are different from VC-MP hashes functions so i failed
http://pastebin.com/gyJQQ3hX (http://pastebin.com/gyJQQ3hX)
Can anyone tell me where is the error/ fix it for me :)
-
Tell us more about error.
For example, In which line & col error is.
-
Did you get an error output in the server console? If you did, what does it say
-
Did you get an error output in the server console? If you did, what does it say
This is exactly what I meant by previous post :P :P :P :P :P :P
-
I just have a looked.. Very strange code, & there's a lot of "invisible" errors....
@ _YaZeEn_
Are you sure, that this will work for LU ? i dont think so ::) 8)
-
Are you sure, that this will work for LU ? i dont think so ::) 8)
I have been scripting for vc-mp and suddenly switched to LU so i got confused.
Did you get an error output in the server console? If you did, what does it say
No errors on console but when i go ingame and test the scripts nothing works.. :(
Can i get a Login/Register system (Hashes) anywhere? Not the DB one.
-
function RegisterUser(player,password)
{
Logged.Load(player.Name + "Logged","True");
Password.Load(player.Name + "Password", password);
Cash.Add(player.Name + "Cash", "0");
IP.Add( player.Name + "IP", player.IP );
Level.Add( player.Name + "Level" "1");
}Logged.Load(player.Name + "Logged","True");
Password.Load(player.Name + "Password", password);
I believe you meant HashTable.Add
IP <- HashTable("Ip's"); Make it Ips instead of Ip's to be safe.
LoadModule( "lu_sqlite" ); // Load up the sqlite moduleNot even using SQLite, why load the module for it?
Level.Add( player.Name + "Level" "1");Logged.Add(player.Name + "Logged" "True" );
Missing a comma, should be:
Level.Add( player.Name + "Level", "1");Logged.Add(player.Name + "Logged", "True" );
local IP = player.IP, Login = Logged.Get( player.Name + "Logged" );
local OIP = IP.Get( player.Name + "IP" ), lvl = Level.Get(player.Name + "Level");
You defined IP at a local level:
local IP = player.IP
Therefore,
IP.Get( player.Name + "IP" )
Will fail.
Triple check your code thoroughly. I've helped this time, but I likely won't help with any careless syntax errors after this.
-
function RegisterUser(player,password)
{
Logged.Load(player.Name + "Logged","True");
Password.Load(player.Name + "Password", password);
Cash.Add(player.Name + "Cash", "0");
IP.Add( player.Name + "IP", player.IP );
Level.Add( player.Name + "Level" "1");
}Logged.Load(player.Name + "Logged","True");
Password.Load(player.Name + "Password", password);
I believe you meant HashTable.Add
IP <- HashTable("Ip's"); Make it Ips instead of Ip's to be safe.
LoadModule( "lu_sqlite" ); // Load up the sqlite moduleNot even using SQLite, why load the module for it?
Level.Add( player.Name + "Level" "1");Logged.Add(player.Name + "Logged" "True" );
Missing a comma, should be:
Level.Add( player.Name + "Level", "1");Logged.Add(player.Name + "Logged", "True" );
local IP = player.IP, Login = Logged.Get( player.Name + "Logged" );
local OIP = IP.Get( player.Name + "IP" ), lvl = Level.Get(player.Name + "Level");
You defined IP at a local level:
local IP = player.IP
Therefore,
IP.Get( player.Name + "IP" )
Will fail.
Triple check your code thoroughly. I've helped this time, but I likely won't help with any careless syntax errors after this.
Oh , Thanks :)