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
Pages: 1 [2] 3 4 ... 37
16  Scripting / Script Releases / Re: GetSkinName on: July 31, 2014, 11:03:12 pm
There's a third way ... Make an array of all the skins and just use something like:
Code: [Select]
return SkinNames[ skinid ]
Uses more memory since it needs to load the whole array in order to return one index. The switch method is better in this case.
17  Scripting / Script Releases / Re: GetSkinName on: July 22, 2014, 06:03:47 pm
Version 1 is the better. It would be nice to add a default value like "Unknown" to be sure it actually returns something even if you enter a invalid id.
18  Liberty Unleashed / Suggestions / Re: List of suggestions & bugs on: July 17, 2014, 11:45:04 am
That's not what sasha means. He means on a server level.
Still. The squirrel VM would be dead by the time the server notices it "crashes".
19  Liberty Unleashed / Suggestions / Re: List of suggestions & bugs on: July 16, 2014, 08:34:04 pm
· * Event: onServerCrash
Lol, and how do you expect this to work?
It's like requesting a dead person to tell his family he's dead. He can't, he's dead. Same goes with the server. It dies. You'd be happy if it was able to free up some memory before dying.
20  Scripting / Script Releases / Re: [Map Editor] Gamesparks' Map Editor on: July 09, 2014, 07:44:30 pm
Then that has nothing to do with this script.
Where did you add the script element in your Content.xml. Before or after your main script?
21  Scripting / Script Snippets / Re: Simple reconnected player detect on: June 29, 2014, 04:54:46 pm
I'm not sure why this would work, care to explain?
I've found, that hashes won't be cleaned after /reconnect. If hash already exists there will be an error.
Ah like that, nice find.
22  Scripting / Script Releases / Re: [Map Editor] Gamesparks' Map Editor on: June 28, 2014, 04:32:59 pm
In order to fix bugs quickly, please post a screenshot of your console next time. The callstack and locals gives a lot of information to why something fails.

I'm glad you got it fixed.
23  Scripting / Script Snippets / Re: Simple reconnected player detect on: June 28, 2014, 04:31:37 pm
I'm not sure why this would work, care to explain?
24  Scripting / Script Releases / Re: [Map Editor] Gamesparks' Map Editor on: June 27, 2014, 01:02:33 pm
If you want you can use an underscore (_) to simulate some kind of space.
Something like Crime_City should in theory work.
25  Scripting / Script Help / Re: Correct Command Check on: June 27, 2014, 12:57:40 pm
Why on earth would you do it like that?

Just use a switch or lot's of if's, and add an default or else.

Code: [Select]
function onPlayerCommand( pPlayer, szCommand, szText )
{
cmd = szCommand.tolower();
if ( cmd == 'info' )
{
//Some code
}
else if ( cmd == 'wanted' )
{
//Some code
}
else
{
MessagePlayer( 'Invalid command', pPlayer );
}
Code: [Select]
function onPlayerCommand( pPlayer, szCommand, szText )
{
cmd = szCommand.tolower();
switch ( cmd ) {
case 'info':
//Some code
break;
case 'wanted':
//Some code
break;
default:
MessagePlayer( 'Invalid command', pPlayer );
break;
}
}
26  Liberty Unleashed / Liberty Unleashed Chat / Re: Vrocker-Hosting.co.uk on: June 26, 2014, 12:04:10 pm
Same page shows if your server is on the masterlist or not.

Most routers don't like connections from inside to their outside IP, this is why you probably can't see your server on the list. If my page says it's on it, other people can see it.
27  Liberty Unleashed / Liberty Unleashed Chat / Re: Vrocker-Hosting.co.uk on: June 25, 2014, 04:49:50 pm
1) Like what method? Paypal is the most used one and available in a lot of countries.
2) Make sure announce is set to yes in your server.conf.
Also, make sure your server is accessible from your external IP.
You can use this little page to check if it is: http://thijn.minelord.com/lu/
28  Liberty Unleashed / Support / Re: Problem on Win7 on: June 23, 2014, 08:19:04 pm
Please someone translate español, because the english part does not make any sense.
29  Liberty Unleashed / Support / Re: LU launches singleplayer on: June 23, 2014, 11:07:04 am
I wouldn't recommend using that file. Who knows what it is infected with.

Only use the official LU.dll that comes with the client download on the main site.

Nope, is not infected.

https://www.virustotal.com/en/file/50c5ee021d1daf8d5396caf8e62ba51e9f24611b221fe3d9320573621260e42c/analysis/1403378538/
Then what's different to the official DLL?
30  Scripting / Script Help / Re: rpg script on: June 17, 2014, 02:00:41 pm
You script it.

Jokes aside, RPG scripts are hard and shouldn't be tried before you are skilled enough to make scripts from scratch and make commands and functions yourself.

Take a look in the released scripts board and make yourself familiar with the syntax.
Pages: 1 [2] 3 4 ... 37
© Liberty Unleashed Team.