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.


Messages - sseebbyy

Pages: 1 ... 3 4 [5] 6 7 ... 51
61
Welcome to this mini Tutorial !
I made this topic just to tell how you can make the chat lag-less.

VC:MP 0.4 has the ability to archive all messages that appears in chat, for you, in 2 ways: txt file, and html file.
The HTML file actually adds all messages too, but already colored.
(here is the line that sets this ability)

Quote from: Stormeus
con_logging

Description
Determines what method VC:MP uses to log console messages.

Allowed Values
0 - No logging
1 - Plaintext logging
2 - HTML logging
3 - Both - Plaintext & HTML logging

The chat is really lagging the game ? Yes.
After you play for a long time, the HTML file become bigger and bigger, so I think it needs more resources.
But anyway, this makes the game lag for a milisecond for every message shown in chat, and you don't want that. :/

All you have to do is to type just once this line, in chat:
Code: [Select]
/setconfig con_logging 1
What will do this command ? Will set the VC:MP to archive all messages just in the .txt file. (so no HTML file)
I have no idea if it will lag too, after a LONG LONG LONG play, because I never played that long to see it lagging, yet. :D

If it starts to lag after that long play, then you can set it to 0, so the messages will not be archived at all.

62
Script Discussion / Re: How to make a "double array" ?
« on: September 17, 2014, 12:01:12 am »
Thank you for reply, but it is not what I need.

Knucis and Gudio were right, and I was noob.
The code is this:
(I use it in a class, so is the example)

Code: [Select]
t = array(sizeofarray,null);
for(local i = 0; i < t.len(); i++)
{
        t[i] = array(sizeofsecondarray,null);
}

I used "local i = 1" instead of "local i = 0" because I was thinking about something related to my project. (that you may find out after I public the script)
I knew that arrays starts with 0, but like I said, I was thinking about something else used few lines under.

Thank you very much, Gudio and Knucis ! :/

Topic locked.

63
Script Discussion / How to make a "double array" ?
« on: September 16, 2014, 06:25:30 pm »
I'm working on a project, and I need double array to can decrease the number of lines used for it.
(I need it to run the globan function)

What I call a "double array" ? This:
Code: [Select]
myarray[0][0];
myarray[1][0];

myarray[0][0] is not the same with myarray[1][0];.
Is it possible ?

64
Servers / Re: |0.4| Ethical DeathMatch
« on: September 16, 2014, 05:58:53 pm »
(/c) preffix only

(/c and !) both preffix

:o Use just the preffix "/". :P



Anyway, good luck with your server, and I hope to see news that uses 0.4 features.

65
General Discussion / Re: System Requirements for 0.4 ?
« on: September 16, 2014, 05:09:55 pm »
haha :D



Ok, thanks for replies. :)

66
General Discussion / System Requirements for 0.4 ?
« on: September 15, 2014, 12:19:14 pm »
I received a pm today with the next message:

Hey,are there any system requirements for VCMP 0.4 or it's just the same?

I told him that all he needs is Visual C++ 2013 runtimes.
There is no other requirement, right ?

67
Bugs and Crashes / Re: [BUG] Some buildings have no texture, sometimes :/
« on: September 15, 2014, 11:51:29 am »
I had the same problem roads on Starfish Island.

I think we both have some mods that damage the game a bit.
I hope this is all, so I will lock the topic.

68
Script Discussion / Re: [Suggestion|Question]Play a sound
« on: September 15, 2014, 11:49:15 am »
I dont want a radio station and I mean a custom sound on server.

You cannot do that.

69
Script Discussion / Re: [Suggestion|Question]Play a sound
« on: September 14, 2014, 10:21:23 pm »
+ you can stream radios to the game.

70
Script Discussion / Re: Server crashes if you call a deleted sprite/textdraw
« on: September 14, 2014, 12:39:57 am »
Good idea, thanks ! :)
Topic locked.

71
Snippet Showroom / Re: GetPlayerNameFromID
« on: September 13, 2014, 02:25:54 pm »
Start to script for 0.4 ...

72
Script Discussion / Re: Server crashes if you call a deleted sprite/textdraw
« on: September 13, 2014, 10:24:56 am »
The question is: Why would you call a deleted textdraw/sprite ? :)

I just tested it, but there are other cases...
You can forget that you deleted the sprite/textdraw, and just call it.

Anyway, Gudio gave me some answers:
Quote
<Gudio> its because when you do remove or delete
<Gudio> instance in squirrel lang still exists
<Gudio> but not in cpp
<Seby> ah :/
<Gudio> when you call it again after removing, cpp doesnt know what do to
<Seby> why you just don't set it = null; ?
<Gudio> it needs some error handlers or some hack to set variables automatically to null when instance is the same

73
Script Discussion / Server crashes if you call a deleted sprite/textdraw
« on: September 13, 2014, 01:28:33 am »
I removed a sprite, then I tried to call it back, but the server stopped.
Shouldn't this be avoided ? To not crash the server if the sprite/textdraw doesn't exist...

74
Script Discussion / Re: How to block shooting from a vehicle?
« on: September 12, 2014, 11:33:18 pm »
damn you, wiki.
Anyway, lock the topic if you found the solution. :P

75
Script Discussion / Re: How to block shooting from a vehicle?
« on: September 12, 2014, 07:28:48 pm »
You are talking about the Drive-by ability.
Use SetDisableDriveby function !

Pages: 1 ... 3 4 [5] 6 7 ... 51