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 - Cool
1
Support / Gui Label (is it bug?)
« on August 9th, 2017, 12:12 PM »
i am trying to add label below Map but its gettting invisible if i set font size in range of 12-25 if i set more than 25 and less than 12 then its get visible
2
Support / #help channel dead
« on July 28th, 2017, 03:03 PM »
Hello, #help channel is dead where i go for asking an bot limit increase on #help channel i am asking from more than 1 month and nothing happening
@Stormeus  @Maxorator
3
General Discussion / Memory leaks
« on July 4th, 2017, 02:57 PM »
Hi @Devs what about memory leaks in vcmp squirrel official plugin when you guys will fix it or its not going to happen
4
Script and Content Requests / Slice out of Rang
« on April 22nd, 2017, 12:56 AM »
when i replace these two functions with these then its start giving me error you can also see screen shot
Code: [Select]
function FindClanTag(strPlayer)
{

local
D_DELIM = regexp(@"([\[(=^<]+\w+[\])=^>]+)").capture(strPlayer),
S_DELIM = regexp(@"(\w.+[.*=]+)").capture(strPlayer);

if (D_DELIM != null)
{
return strPlayer.slice(D_DELIM[0].begin, D_DELIM[0].end);
}
else if (S_DELIM != null)
{
return strPlayer.slice(S_DELIM[0].begin, S_DELIM[0].end);
}
}


function GetTag(strPlayer)
{

local
D_DELIM = regexp(@"([\[(=^<]+\w+[\])=^>]+)").capture(strPlayer),
S_DELIM = regexp(@"(\w.+[.*=]+)").capture(strPlayer);

if (D_DELIM != null)
{
return strPlayer.slice(D_DELIM[0].begin + 1, D_DELIM[0].end - 1);
}
else if (S_DELIM != null)
{
return strPlayer.slice(S_DELIM[0].begin, S_DELIM[0].end - 1);
}
}

With this One

Code: [Select]
function FindClanTag(strPlayer)
{
local
     D_DELIM = regexp(@"([\[(=^<{]+\w+[\])=^>}]+)"),// Checking for double delimiter like [TX],{TX},(TX),=TX=,^TX^,<TX>
     D_DELIM_SYM_2 = regexp(@"([\[(=^<{]+\w+[\.*-=]+\w+[\])=^>}]+)"),    // Checking the presence of symbolic clan tag with 2 alphanumeric values like [T-X]Azazel [ Double Delimiter ]
     D_DELIM_SYM_3 = regexp(@"([\[(=^<{]+\w+[\.*-=]+\w+[\.*-=]+\w+[\])=^>}]+)"), // Checking the presence of symbolic clan tag with 3 alphanumeric values like [F.O.X]Sofia [ Double Delimiter ]
         S_DELIM = regexp(@"(\w.+[.*=]+)"),               // Checking for single delimiter like VT. VT= VT* 

     D_DELIM_res = D_DELIM.capture(strPlayer),// Capturing for the double delimiter expression in player.Name  [ will return some array blocks of clan as [TX] < WITH THE CLAN TAG SYMBOL INCLUDED>]
     D_DELIM_SYM_2_res = D_DELIM_SYM_2.capture(strPlayer),  // Capturing for T-X / T.X / T*X Type
     D_DELIM_SYM_3_res = D_DELIM_SYM_3.capture(strPlayer),  // Capturing for F-O-X / F.O.X / F*O*X Type
     S_DELIM_res = S_DELIM.capture(strPlayer);           // Capturing for the single delimiter expression in player.Name  [ will return some array blocks as VT. < WITH THE CLAN TAG SYMBOL INCLUDED>]

if ( D_DELIM_res != null )      // Are captured expressions true ? Do they physically exist in memory?
{
return strPlayer.slice( D_DELIM_res[ 0 ].begin + 1, D_DELIM_res[ 0 ].end - 1 );   // Slicing [TX] into TX by moving 1 step forward from beginning & same step backward from the end 
}
else if ( D_DELIM_SYM_2_res != null )     
{
local tag_sym_2 = strPlayer.slice( D_DELIM_SYM_2_res[ 0 ].begin + 1, D_DELIM_SYM_2_res[ 0 ].end - 1 );   // Slicing [T-X] into T-X by moving 1 step forward from beginning & same step backward from the end 
    local amalgamate_2 = split(tag_sym_2, ".*-=");                      // Splitting T-X into 2 array blocks like a[0] = T, a[1] = X [ DEFINED BY SEPARATORS ]
    return (amalgamate_2[0]+amalgamate_2[1]);                         // Returning the Sum i.e. TX
}
else if ( D_DELIM_SYM_3_res != null )      // Are captured expressions true ? Do they physically exist in memory?
{
local tag_sym_3 = strPlayer.slice( D_DELIM_SYM_3_res[ 0 ].begin + 1, D_DELIM_SYM_3_res[ 0 ].end - 1 );   // Slicing [F.0.X] into F.O.X by moving 1 step forward from beginning & same step backward from the end 
    local amalgamate_3 = split(tag_sym_3, ".*-=");                      // Splitting F.O.X into 3 array blocks like a[0] = F, a[1] = 0, a[2] = X [ DEFINED BY SEPARATORS ]
    return (amalgamate_3[0]+amalgamate_3[1]+amalgamate_3[2]);           // Returning the Sum i.e. FOX

}
else if ( S_DELIM_res != null )
{
return strPlayer.slice( S_DELIM_res[ 0 ].begin, S_DELIM_res[ 0 ].end - 1 ); // Slicing VT. into VT by moving 1 step backward from the end
}
        else return null;                            // No such expressions found? Probably player isn't in a clan. Let's return null !!!
}
function GetTag( string )
{
        local
        Tag = FindClanTag( string ).toupper(),   
        Clans = { VU_T = "VU", VU_R = "VU", TLK = "ULK", TLKR = "ULK", UFR = "UF", UFT = "UF", MKT = "MK", MKS = "MK", DKR = "DK", DKT = "DK", DKS = "DK", OSKR = "OSK", OSK_A ="OSK", OSKR= "OSK", OSKA= "OSK", OSK_R= "OSK", WR_S ="WRS", WRS_T ="WRS", ATT = "AT", ATR = "AT", CFR = "CF", CFT = "CF", VAT = "VA", VAR = "VA", MDT = "MD", MDR = "MD"};
       
         if ( Tag in Clans )    // Checking if the tag obtained through findclan( string ) is in Clan Table or not
        {
             return Clans[ Tag ];      // If yes, its time to calling their corresponding slots from the table
        }
        else return FindClanTag( string );    // if not, then tag will be as it is [ If no slot will be alloted for a clan then script may recognize sublevels as other clans ]
}

Error at this Function
Code: [Select]
function TruncateClan(strPlayer)
{

local
D_DELIM = regexp(@"([\[(=^<]+\w+[\])=^>]+)").capture(strPlayer),
S_DELIM = regexp(@"(\w.+[.*=]+)").capture(strPlayer);

if (D_DELIM != null)
{

// --- 2 letters in tag
if (GetTag(strPlayer).len() == 2)
{
return strPlayer.slice(D_DELIM[0].begin + 4, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len()); // Error at this line
}



// --- 3 letters in tag
else if (GetTag(strPlayer).len() == 3)
{
return strPlayer.slice(D_DELIM[0].begin + 5, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


// --- 4 letters in tag
else if (GetTag(strPlayer).len() == 4)
{
return strPlayer.slice(D_DELIM[0].begin + 6, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


// --- 5 letters in tag no found for valid
else if (GetTag(strPlayer).len() == 5)
{
return strPlayer.slice(D_DELIM[0].begin + 7, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


// --- 6 letters in tag no found for valid
else if (GetTag(strPlayer).len() == 6)
{
return strPlayer.slice(D_DELIM[0].begin + 8, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


}
else if (S_DELIM != null)
{
// --- 2 letters in tag
if (GetTag(strPlayer).len() == 2)

{
return strPlayer.slice(S_DELIM[0].begin + 3, S_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}



// --- 3 letters in tag
else if (GetTag(strPlayer).len() == 3)
{
return strPlayer.slice(S_DELIM[0].begin + 4, S_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}



// --- 4 letters in tag
else if (GetTag(strPlayer).len() == 4)
{
return strPlayer.slice(S_DELIM[0].begin + 5, S_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


// --- 5 letters in tag no found for valid
else if (GetTag(strPlayer).len() == 5)
{
return strPlayer.slice(S_DELIM[0].begin + 6, S_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


// --- 6 letters in tag no found for valid
else if (GetTag(strPlayer).len() == 6)
{
return strPlayer.slice(S_DELIM[0].begin + 7, S_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len());
}


}
}
http://imgur.com/a/sQpHF
Error line
Code: [Select]
   return strPlayer.slice(D_DELIM[0].begin + 4, D_DELIM[0].end + strPlayer.len() - FindClanTag(strPlayer).len()); // Error at this line
5
Scripting and Server Management / Problem with rulk's bot
« on April 21st, 2017, 04:36 PM »
The rulk's bot seems to doesn't work properly when we have a ":" in our text. As rulk's bot gets the username, text by splitting ":". So when I try to send any text from echo bot containing ":" it doesnt work. so how to deal with it
6
class PlayerClass
Code: [Select]
ClanKills = 0;
ClanDeaths = 0;
ClanDeads = 0;
Array
Code: [Select]
pstats <- array( GetMaxPlayers(), null );
OnPlayerKill
Code: [Select]
function onPlayerKill( player, killer, reason, bodypart )
{
local KClan = GetTag( killer.Name ), DClan = GetTag( player.Name );

      if ( killer && player )
      {
                 if ( KClan && IsClanRegister( KClan ).tolower() ) { pstats[ KClan ].ClanKills++; }

                 if ( DClan && IsClanRegister( DClan ).tolower() ) { pstats[ DClan ].ClanDeaths++; }
      }         
}
savestats
Code: [Select]
function SaveClanStats( player )
{
local id = player.ID;
  local Clan = GetTag( player.Name );
  if ( Clan && IsClanRegister ) {
       
mysql_query( sDB, "UPDATE ClanStats SET Kills='" + pstats[ id ].ClanKills + "', Deaths='" + pstats[ id ].ClanDeaths + "' WHERE lower(Clan) = '" + Clan.tolower() + "'");
   print(mysql_error(sDB));

   print( "Saved Stats of Player" );
}
}

But its giving Error that the clan does not exists while its exists
7
Scripting and Server Management / Query not working
« on March 7th, 2017, 06:18 AM »
Code: [Select]
else if ( cmd == "spawnwepdel")
    {

    if ( CheckTableSpawnwep( player ) )
    {
        mysql_query( sDB, "DELETE FROM SpawnWep WHERE lower(Nick)='" + player.Name.tolower() + "'" );
print(mysql_error(sDB));
        ClientMessage( "-> Your Spawnwep have been deleted.",player,255,0,102); SpawnwepPlayer[ player.ID ] = null;
    }
    else ClientMessage( "-> Error: You not have spawnwep.",player,255,0,102);
    }
error: Table 'database.SpawnWep' Does not exists
8
Scripting and Server Management / Deleting a Name from Colum
« on February 26th, 2017, 08:58 AM »
as title says i want to know how i can delete only 1 name without losing full colum data

as you see there are 3 names so how i can delete only one name that is [VA]Noob
9
Scripting and Server Management / Commit Transaction error
« on February 21st, 2017, 04:35 PM »
Dont know why its happening
Code: [Select]
function RegisterClan( Clan )
{
SafeSelect( sDB, "START TRANSACTION" );
        SafeSelect( sDB, format( "REPLACE INTO ClanStats (Clan) VALUES ('%s')", Clan ) );
        SafeSelect( sDB, format( "REPLACE INTO ClanUsers (Clans) VALUES ('%s')", Clan ) );
SafeSelect( sDB, "COMMIT TRANSACTION" );

}
http://imgur.com/a/qbwCT
Error line:
Code: [Select]
SafeSelect( sDB, "COMMIT TRANSACTION" );
Note: SafeSelect  is a function By SLC which give right details of error
10
Scripting and Server Management / load props error
« on February 20th, 2017, 07:11 AM »
its working fine but when i create 1 prop and then restart after restarting its start giving me error of PX Does not exists
Code: [Select]
function LoadProps()
{
 local q = mysql_query( sqliteDB, "SELECT * FROM Properties" ), i = 0;
  if( mysql_num_rows( q ) == 1 ) {
local result = mysql_fetch_assoc( q );
  PX = result[ "PX" ];
  PY = result[ "PY" ];
  PZ = result[ "PZ" ];
  CreatePickup( 407, Vector( PX.tofloat(), PY.tofloat(), PZ.tofloat() ) );
mysql_free_result(q);
  i++;
 
 }
  print( "Props loaded - " + i );
 
}
11
Off-Topic General / Free Host
« on January 14th, 2017, 09:16 PM »
First of All i would like to tell you Vps is located At Usa.
For subdomain you can include in your request  for example subdomain.vc-mp.co.uk  or you can also request for tk cf ml gf ect i will try to register it for you if available

SERVERHOST:
Code: [Select]
User Name:
Email Address:
Server Name:
Port:
Slots(10-100):
PORT:

WEBHOST:
Code: [Select]
User Name:
Sub-domain:
Email Address:
What are you planning to do with this Webhost?:
Forum Software(Optional):
Extra Information(Optional): 

INFORMATION: For Web Host i will be not Able To give FTP Access But if some one trusted Ask for ftp maybe i give.

IRC BOUNCERS:
Code: [Select]
User Name:
Email Address:
Network:
12
Script and Content Requests / Set price
« on December 30th, 2016, 08:31 AM »
hi i want to make a cmd which get vehicle model and find thats cars which model = i give and set price of all cars which i model id i give i am talking about those ids not the server db  ids
http://murdock.in/wiki/index.php/Vehicle_IDs
if possible Give me a example if you cant give full cmd a example will be help full to complete my command
13
Scripting and Server Management / ptting values from another table
« on November 13th, 2016, 01:02 PM »
Hi how i can put these values from another table
Code: [Select]
                    query = QuerySQL( sqliteDB, "INSERT INTO Banned( ban_nick, ban_ip, ban_time, ban_expire, ban_expireratio, ban_admin, ban_reason, ban_uid, ban_uid2 ) VALUES ( '"+ player.Name.tostring() +"','"+ player.IP.tostring() +"','"+ time().tostring() +"', '"+ ban_Expires.tostring() +"', '" + expire.tostring() + "', '"+ admin.Name.tostring() +"', '"+ reason.tostring() +"', '"+ player.UID.tostring() +"', '"+ player.UID2.tostring() +"')");
14
Scripting and Server Management / mysql expression Error
« on November 6th, 2016, 06:50 AM »
hi i got an error expression expected triedd to fix but not working
Code: [Select]
if ( cmd == "changenick" )
{
if (!text) MessagePlayer("[#4682B4][Syntax][#FFFFFF]/changenick <password> <new-nick>",player );
else if (NumTok(text, " ") < 2) MessagePlayer("[#4682B4][Syntax][#FFFFFF] /changenick <password> <new-nick>",player );
else
{
local query = mysql_query( sqliteDB, "SELECT Password FROM Accounts WHERE Name = '" + player.Name + "' COLLATE NOCASE" );
  if( mysql_num_rows( query, 0 ) == null ) MessagePlayer( " [#4682B4][TIP] [#FFFFFF] You are not registered Register With /register pass.", player );
  else
{
local password = (GetTok( text, " ", 1));
  local q1 = mysql_query( sqliteDB, "SELECT Password FROM Accounts WHERE Name = '" + player.Name + "' COLLATE NOCASE" );
  local result = mysql_fetch_assoc( query );
  if( SHA256( password ) != result[ "Password" ]  ) MessagePlayer( " [#4682B4] [Info] [#FFFFFF]Wrong password.", player );
  else
{
local q, data;
local name = GetTok(text, " ", 2), q = mysql_query( sqliteDB, "SELECT * FROM Accounts WHERE Name = '" + name+ "' COLLATE NOCASE" );
while( data = mysql_fetch_assoc( q ) )
{
if ( mysql_num_rows( q ) !== Null ) MessagePlayer("[#4682B4]"+name+"[#FFFFFF] is already a registered user." ,player );
else
{
mysql_query(sqliteDB,"UPDATE Accounts SET Name='"+name+"' WHERE Name='"+player.Name+"'");
mysql_query(sqliteDB,"UPDATE Accounts SET NameLower='" +name.tolower()+ "' WHERE NameLower='"+player.Name.tolower()+"'");
mysql_query(sqliteDB,"UPDATE Properties SET Owner='"+name+"' WHERE Owner='"+player.Name+"'");
mysql_query(sqliteDB,"UPDATE Cars SET Owner='"+name+"' WHERE Owner='"+player.Name+"'");
mysql_query(sqliteDB,"UPDATE LMS SET Name='" +name.tolower()+ "' WHERE Name='"+player.Name.tolower()+"'");
mysql_query(sqliteDB,"UPDATE Spawnwep SET Nick='"+name+"' WHERE Nick='"+player.Name+"'");
mysql_query(sqliteDB,"UPDATE Spawnloc SET Name='"+name+"' WHERE Name='"+player.Name+"'");
player.Name = name;
MessagePlayer("[#4682B4][Changed][#FFFFFF]You have been Successfully Changed Your Name to"+RED+" "+name+".",player)
}
}
mysql_free_result( q );
}
}
}
}
15
General Discussion / Need support
« on November 5th, 2016, 10:11 AM »
Please Help me in migrating my server from sqlite to mysql i wana which which things i need to change from server for mysql
like in sqlite its SqlQuery and in mysql its mysql_query please Tell me others things which need to change or please make somthing like this for me like slc did for his plugin
Code: [Select]
ConnectSQL <- SQLite_Open;
DisconnectSQL <- SQLite_Close;
QuerySQL <- SQLite_Query;
GetSQLNextRow <- SQLite_NextRow;
GetSQLColumnCount <- SQLite_ColumnCount;
GetSQLColumnData <- SQLite_ColumnData;
FreeSQLQuery <- SQLite_Release;
escapeSQLString <- SQLite_Escape;