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

Topics - Xmair

#41
Scripting and Server Management / Gravity
Aug 29, 2015, 01:48 PM
Hello, I wanna ask something, can we change only one world's gravity not the whole server? Transfer the player.Gravity to 0.4 -,-
Q2:
How can we use an ignore function on , onplayerchat function? Since the IsIgnored function isn't transferred to 0.4. It's my request to transfer it or tell / atleast give an example on how to do it?
#42
else if ( cmd == "readl" )
{
if(GetLetter( player )==0) ClientMessage("No letters received found.",player,255,255,0)
else if (!player.IsSpawned) ClientMessage("You're not spawned.",player,255,255,0)
else
{
local q = QuerySQL( db, "SELECT * FROM letters WHERE SentTo='"+player.Name+"'");
if ( GetSQLColummnData(q,1) )
{
local cashl = GetSQLColumnData( q, 2 );
ClientMessage("Letter from :- " + GetSQLColumnData( q, 3 ) + ".")
ClientMessage("Letter :- " + GetSQLColumnData( q, 1 ) + ".")
ClientMessage("Money sent :- " + GetSQLColumnData( q, 2 ) + ".")
IncCash( player, cashl )
        QuerySQL( db, "DELETE FROM letters WHERE Message='" + msg + "'" );
    FreeSQLQuery( q );
}
}
}
Things I have in this function :-
    function GetLetter.
    function IncCash.
    Table is created.
QuerySQL( db, "CREATE TABLE IF NOT EXISTS letters ( SentTo VARCHAR(32), Message TEXT, Cash NUMERIC, Sentfrom VARCHAR(32) )");Required and up to date everything like plugins and server.exe.
Error :-
onPlayerCommand Error :- The index "GetSQLColumnData" doesn't exists.
Yes, There is data inserted into that table, I've received a letter there.
#43
Off-Topic General / Smf help
Aug 28, 2015, 08:40 AM
Warning: file_exists(): open_basedir restriction in effect. File(/home/u751193545/public_html/smf) is not within the allowed path(s): (/home/u628657482:/usr/lib/php:/tmp) in /home/u628657482/public_html/Settings.php on line 51 Warning: file_exists(): open_basedir restriction in effect. File(/home/u751193545/public_html/smf/Sources) is not within the allowed path(s): (/home/u628657482:/usr/lib/php:/tmp) in /home/u628657482/public_html/Settings.php on line 53 Warning: file_exists(): open_basedir restriction in effect. File(/home/u751193545/public_html/smf/cache) is not within the allowed path(s): (/home/u628657482:/usr/lib/php:/tmp) in /home/u628657482/public_html/Settings.php on line 55
Connection Problems

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
This error is coming from like 3 hours.
Line 51:
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
Line 53:
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
Line 55:
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
#44
Scripting and Server Management / Function
Aug 25, 2015, 08:56 AM
Hiya!
Is there any function to check a player's distance from a pickup? If there is then please tell me, And if there's not a function like that, Than is there any example on how can I make it?
#45
Hey guys, In this thread start posting the best moment of vcmp and your real life and worst moment of your life and vcmp!
I will post mine later xD
#46
Scripting and Server Management / Ban issue
Aug 10, 2015, 07:13 AM
Hello guys, I am having a ban issue, I once used /exe FindPlayer(1)Ban(); On a hacker as my /ban was a bit bugged atm. now all t.he players are reporting that they can't join the server it says that you are banned, anything to make them unbanned? I checked the database, No bans found, I deleted the whole database, still the problem occurs