Show Posts
|
Pages: [1]
|
1
|
Liberty Unleashed / Support / LU on Ubuntu 14.04 64 bits
|
on: August 23, 2016, 10:45:55 pm
|
I want to use LU on a 14.04 LTS 64 bits, I installed the 32 bits library and LU works. But when I want to use mysql, it won't work because the module lacks the following library:
/usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
Is there something I can do to make it work on 14.04 64 bit?
|
|
|
3
|
Scripting / Script Help / sphere & pickup .ID
|
on: February 04, 2016, 11:10:16 am
|
Hello Somehow I can't get the ID of pickup and spheres. I can get the ID of a vehicle and object. This is the code I have with it: local sphere = CreateSphere(Vector(0,0,0), 5.0, Colour(153, 0, 0)); local pickup = CreatePickup(1362, Vector(0, 0, 0) ); local vehicle = CreateVehicle( VEH_INFERNUS, Vector(0, 0, 0), 5.0, -1, -1 ); local object = CreateObject( 1378, Vector(0, 0, 0) );
// doesn't work print(sphere.ID); print(pickup.ID); // works print(vehicle.ID); print(object.ID); Is there something I'm doing wrong? The other types like .Owner or .Pos doesn't work either on spheres and pickups. The wiki however says it should be possible. AN ERROR HAS OCCURED [the index 'ID' does not exist]
<04/02/2016 - 11:06:59> CALLSTACK
<04/02/2016 - 11:06:59> *FUNCTION [onScriptLoad()] Scripts/Main/main.nut line [64]
<04/02/2016 - 11:06:59> LOCALS
<04/02/2016 - 11:06:59> [object] INSTANCE
<04/02/2016 - 11:06:59> [vehicle] INSTANCE
<04/02/2016 - 11:06:59> [pickup] INSTANCE
<04/02/2016 - 11:06:59> [sphere] INSTANCE
<04/02/2016 - 11:06:59> [this] TABLE
|
|
|
4
|
Scripting / Script Help / player.ColouredName
|
on: February 03, 2016, 08:54:18 pm
|
Hello guys, I can't seem to set the colour of a players name. This is what I have tried: player.ColouredName = "[#E5FFCC]hi[#d]"; player.ColouredName = "[#E5FFCC]hi"; The wiki says to use: "You can use the colour formatting tags with this function ([#RRGGBB] [#d])" But there is no clear example of how to use it. Does someone know how to use this?
|
|
|
5
|
Scripting / Script Help / Player NameTag Colour
|
on: November 28, 2015, 01:23:57 pm
|
Hello dear scripters,
I have tried to change the color of the name of a player (also seeable in TAB player list). But so far no luck.
Could anyone give me an example of how you could change the color of a players name by script?
I did see Player.NametagColour, but I have no idea how to use it.
|
|
|
6
|
Scripting / Script Help / mysql_fetch_assoc
|
on: June 21, 2015, 12:31:20 am
|
Hello dear scripters,
For some reason this code crashes my server, is there any other way to get all rows from a mysql_fetch_assoc?
local row; while(row = mysql_fetch_assoc(result)) { MessagePlayer(row["type"] + " " + row["rank"], player, 255, 0, 0); }
It only happens where there are more then 1 records in the database. I used the same example from the wikipedia. Result here is a mysql_query
|
|
|
7
|
Scripting / Script Help / CallClientFunction
|
on: April 05, 2015, 07:58:56 pm
|
Hello guys,
I'm trying to show a gui when a person uses a specific command like this:
else if ( cmd == "help" ) { MessagePlayer("Showing help menu", player); CallClientFunc(player, "Scripts/Client/HelpGui.nut", "showGui"); return 1; }
Only it doesnt work. Also I'm not sure where the path leads from. Does it start from the root folder or from the scripts folder? The clien't function I'm calling does not need parameters.
function showGui() { Message( "Testing..." );
// We use VectorScreen to set the GUI position. When aligning to the center, we minus half the width/height. local pos = VectorScreen(ScreenWidth/2-245,ScreenHeight/2-50); // We use ScreenSize to set the GUI size. local size = ScreenSize(490,100); // Create the window with the title "Example Window", and declare it TheWindow TheWindow <- GUIWindow(pos,size,"Example Window"); // Create a layer for our new window AddGUILayer(TheWindow);
return 1; } Many thanks
|
|
|
|