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.

Topics - KAKAN
Snippet Showroom / Spawn sound
« on August 25th, 2017, 10:11 AM »
Y'all remember the old good sound you would get while spawning in 0.3?
I wanted, and the closest I found was 369 :)
If you have the nearly appropriate sounds for any other events post it here and I'll add it gladly :)

Event name    Sound ID
Code for the first one( since it is the snippet showroom section ;x ):
Code: [Select]
local onPlayerSpawn = @( player ) player.PlaySound(369);
Untested code and I don't expect it to work either.
Scripting and Server Management / [CLIENT][SERVER] How to load the compiled scripts?
« on May 29th, 2017, 09:58 AM »
I compiled the client side scripts using the sq compiler posted by Stormeus.
After that, I renamed the file as main.cnut and pasted it in client side script folder( store/script )
It didn't work. Any help on how to load it?
What I've tried so far:-
  • Rename it to main.nut
  • Rename it to something else( both with .nut and .cnut extensions ) and load it from main.nut using loadfile and include
The debug_log says that its loaded, but the GUI doesn't seem to work.
Client Scripting / Script::ScriptProcess
« on April 2nd, 2017, 10:40 AM »
If I'm correct, ScriptProcess should be called 1 time in each ms. But its not.
Its getting called 100 times around every 2 secs.
I want to know how many times it gets called in one sec. I can't use time() since its not present in the client side( dunno why though, its a offcial squirrel function iirc )
Bugs and Crashes / [BUG] PlaySoundForWorld
« on March 1st, 2017, 08:18 AM »
Subject: [Bug]PlaySoundForWorld not working as expected

For ex: I play the sound at world 400, then teleport the player to world 400 and then teleport him/her to world 1. The problem is that the sound still continues to play even if the player is in world 1.


What you were doing when the bug happened
trying to copy SAMP's spawn sound( BABA's request :D )

What you think caused the bug
Scripting skills of the devs

Take this code for ex:
Code: [Select]
player.World = 400;
PlaySoundForWorld( 400, soundID );
player.World = 1;
Here, the sound still plays even if the player is in world 1.
NOTE: My sound is 24s long, that's why I could find this bug.

I actually change the world after 2 secs, but that's not needed. For debugging my code, I added print statements to print the world. It showed 400 and 1 respectively, so, my code is fine.
Snippet Showroom / JoinArray, GetTok
« on February 9th, 2017, 06:20 PM »
Well, I've seen many people using a inefficient method for joining arrays. By seeing the function, I got to know that the person who wrote that function has not touched the squirrel documentation. There's already a function given for joining arrays. Without anything further, here's the code, enjoy.
This might not be the most efficient method, but atleast more efficient than the older function used for Joining arrays.
Code: [Select]
local testarray = ["A","quick","brown","little","fox"];
print( JoinArray( testarray, " " ) );
Code: [Select]
A quick brown little fox
Off-Topic General / Free host
« on January 29th, 2017, 04:51 PM »
Found this. Was present in the name of a VCMP server( Brasil real RPG )
You may try it and see if they're actually giving you host :p
General Discussion / Suggestion for showdebug
« on December 3rd, 2016, 12:46 PM »
Is it possible for showdebug to show pickup and other things when they're formed and destroyed? I also want that when Spectate function is used for us, showdebug( if on ) should show that Player ID: x is spectating you.
It would really be a good help for us :)
There's a poll to vote. It would be helpful to all VCMP server developers though.
Off-Topic General / Compiling VCMP server for ARM architecture?
« on August 16th, 2016, 08:56 AM »
I could have done that, but, unfortunately I don't have the source code.
Any ideas on that? I want VCMP's server on ARM so that I can use it with Raspberry PI or something similar to that.
@Stormeus @maxorator do you have time to compile it for ARM architecture? If so, please, do it. Thanks.
Well, I was trying to download the VCMP server with its plugins, but seems like I can't access that website. Everyone is having the same problem or is it just me?
General Discussion / [announcer] Failed to read announce response
« on July 30th, 2016, 09:05 AM »
I got a message like:-
Code: [Select]
announcer: Failed to read announce response from
Can I get a explanation why that error poped up? And can anyone tell me the other error codes too :) ?
General Discussion / What's the limit of markers?
« on June 17th, 2016, 01:50 PM »
As the topic says, is there a limit on map markers( function name: CreateMarker ), if so, how much?
Off-Topic General / LOLCode
« on May 24th, 2016, 03:14 AM »
Well, I'm trying to handle a HTTP GET request to a website. How can I store the output?
Something like the AJAX request to get a XML, but in my case, JSON
How to do it? Any examples would be useful :)
Off-Topic General / What's your favorite...?
« on May 14th, 2016, 09:02 AM »
It's a game where one will ask What's your favorite INSERT something there?
And so on.
For ex:
KAKAN: What's your favorite fruit?
Someone: Apple. What's your favorite server?

Let me start:
What's your favorite JS library?