Menu

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 Menu

Messages - Ksna

#1
I should quote myself as you have not read this in my previous reply
Quote from: Ksna on Aug 21, 2015, 03:43 PMI want to make it without bindkeys...
SLC shown some ways anymore?
#2
I mean how to know if a player goes afk by pressing windows key  I have seen this function  OnplayerStatechange but it crashes . I want to make it without bindkeys...
#3
Scripting and Server Management / Windows Key
Aug 21, 2015, 03:20 PM
Is there any function to check find if a player pressed windows key. so I can kick him from race.
I'm using bindkeys to make this but I want to know if there is any function to make my code simple.
#4
Not seen this line

if ( stats[player.ID].Logged )
{
stats[ player.ID ].Update( player, sqliteDB );
print ("Stats Updated.");
}
#5
function onPlayerJoin( player )
{
playerson.push( player.ID );
}

As there is no semicolon  at player.push in your code, this statement is never executed and as there is no player.ID in that array it shows a error in playerson.remove .

print ("Stats Updated.");

#6
Sorry for late reply , after a restart everything is working fine even the one which gave me an error. Why this happen?

when i paste this code as is http://forum.vc-mp.org/?topic=668.msg4292#msg4292 . this works randomly i mean sometime it works , sometimes it wont . Even if it is working when i press h it shows nothing.
#7
I made a video because this needs it
https://youtu.be/lC_VnzBr93g

Once it worked and i got crashes when i pressed 'w'.
#8
using this as is in a blank page
function onScriptLoad()
{

w <- BindKey(true,0x57,0,0); // Your key bind defined.

}

function onKeyDown( player, key )
{
    if( key == w ) {
        // Move the car for the player who pressed the key.
    }
}

function onKeyUp( player, key )
{
    if( key == w ) {
        // Stop moving the car for player who has stopped pressing the key.
    }
}

gives error at onkeydown , if( key == w)
#9
I have pasted your code as it is in a blank page . when i press h in game nothing happens.
#10
Scripting and Server Management / bind keys
Aug 08, 2015, 02:08 PM
I was trying to make a remote car like topfun missions but when i bindkey it works only once even if i hold and it moves when i press continuosly.
Can anyone give a idea how to make it move when i hold a key..
#11
Thanks thijn, topic solved
#12
In Doom Editer, When i created a sprite using /cs example.png it has original size. then i got the values but when i create a createsprite it shows somewhere and image looks bigger than original.
How to fix this ?
#13
Working now ;)  but hostinger mysql wont work... and this one too
sqliteDB <- mysql_connect( "mysql5.000webhost.com", "a6117057_dell", "dell123", "a6117057_dell" );

#14
Thijn, It doesn't print anything
I guess the problem is with uac or may be i have 2 operating systems (7, 10) and 10 is primary and wamp has been installed to windows 10 drive from win 7 this has completely changed my mysql i will try hosting a wordpress and use easyphp