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 - Nihongo^
1
General Discussion / Game Full screen ?
« on October 25th, 2020, 12:05 PM »
How do i make it appear full on my LCD ?

2
Support / NULL Message appared after getting weapone
« on January 4th, 2019, 05:11 PM »
Hi guys i am receving an error "Null0000" after getting weapon how do i fix it ?


Code: [Select]
else if ( cmd == "wep" || cmd == "we" || cmd == "buywep" )
{
 if ( status[ player.ID ].Registered == false ) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]You need to be a part of our community to use this command.", player );
  else if ( status[ player.ID ].Logged == false ) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]You need to be identified to use this command.", player );
  else if ( !text ) return ErrorMessage( "[#FF0000][Server] - [#FFFFFF]/"+cmd+" <wep1, wep2, wep3...>", player );
 else
 {
  local params = split( text, " " ); // Take out the space array
  local weapons; // Create a new null variable which will be holding the list of weapons player took.
  for( local i = 0; i <= params.len() - 1; i++ ) // since the 'len' returns value from 1 and array's starting value point is 0, we will use len() - 1 otherwise we'll receive an error.
  {
   if( !IsNum( params[i] ) && GetWeaponID( params[i] ) && GetWeaponID( params[i] ) > 0 && GetWeaponID( params[i] ) <= 32 ) // if Name was specified.
   {
    player.SetWeapon( GetWeaponID( params[i] ), 99999 ); // Get the weapon ID from its Name
    weapons = weapons + " " + GetWeaponName( GetWeaponID( params[i] ) ); // Add the weapon name to given weapon list
   }
   else if( IsNum( params[i] ) && params[i].tointeger() < 33 && params[i].tointeger() > 0 ) // if ID was specified
   {
    player.SetWeapon( params[i].tointeger(), 99999 ); // Then just give player that weapon
    weapons = weapons + ", " + GetWeaponName( params[i].tointeger() ); // Get the weapon name from the ID and add it.
   }
   else ErrorMessage( "[#FF0000][Server] - [#FFFFFF]Invalid Weapon Name/ID!", player ); // if the invalid ID/Name was given

  }
 
  if( weapons != null ) SendMessage( "[#008000][WEAPONS] - [#FFFFFF]Received weapons: "+weapons+".", player );
  else ErrorMessage( "[#FF0000][Server] - [#FFFFFF]No weapons specified", player );
 }
}
3
Support / Clanstats Not Counting member's Kills and deaths
« on January 1st, 2019, 06:14 PM »
Quote from ! on January 1st, 2019, 01:57 PM
RegisterClan( player, Clan, Owner.tolower(ss) );
Why is there ss inside brackets?
Ah shit i think i mistakenly wrote "ss" while pasting Code HERE
there's no "ss" on my command i mistakenly put while pasting it
Quote
The message in the server clearly says that the argument OwnerNick received is empty string.
I've fix that problem sir by putting the old gettok function i am facing an other problem now I've added members on db the script is counting my kills and deats ( AS OWNER NOT MEMBER ) but not counting my member's kills/deaths

check the pic kindly i just killed [MD]Test which mean it has to increase Clan deaths too


Which function should i need to show you ?

here's on player kill function

Code: [Select]
if ( status[ killer.ID ].Clan != null )
{
local Clan = status[ killer.ID ].Clan;
IncTagKills( Clan );
}
if ( status[ player.ID ].Clan != null )
{
local Clan = status[ player.ID ].Clan;
IncTagDeaths( Clan );
}
4
Support / Nick not register Clan bug
« on December 31st, 2018, 02:51 PM »
Hi first thanks to all of you who are helping me
i am trying to put clan system on my script i put clan tag and owner nick but server said that nick ( owner name ) not register while my nick is already on db and i am an admin



cmd
Code: [Select]
else if ( cmd == "addclan" )
  {
  if ( status[ player.ID ].Registered == false ) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]You need to be a part of our community to use this command.", player );
  else if ( status[ player.ID ].Logged == false ) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]You need to be identified to use this command.", player );
  else if ( GetLevel( player ) < 6 ) ErrorMessage("[Server] - [#FFFFFF]You don't have access to use this Command.", player );
  else if ( !text ) ErrorMessage( "[SYNTAX] - [#FFFFFF] /"+cmd+" <Clan-Tag> <Clan-Admin-Full-Nick>", player );
  else
    {
    local Clan = GetTok( text, " ", 1 );
    if ( !Clan ) ErrorMessage( "[ERROR] - Mention Clan-Tag.", player );
    else if ( Clan && IsClanRegister( Clan.tolower() ) ) ErrorMessage( "[ERROR] - [#FFFFFF]Clan [ "+Clan+" ] is already registered.", player );
    else
      {
      local Owner = GetTok( text, " ", 2 );
      if ( !Owner ) ErrorMessage( "[ERROR] - [#FFFFFF]Mention Clan-Admin-Nick.", player );
      else RegisterClan( player, Clan, Owner.tolower(ss) );
      }
    }
  }

Fucntion

Code: [Select]
function RegisterClan( player, Clan, OwnerNick )
  {
  local q = QuerySQL( db, "SELECT Name FROM Accounts WHERE lower(Name) LIKE '"+OwnerNick+"'" );
  if (!q) ErrorMessage( "[#FF0000][Server] - [#FFFFFF]"+OwnerNick+" is not a registered nick.", player );
  else if (q)
    {
    local Owner = GetSQLColumnData( q, 0 );
    QuerySQL( db, "UPDATE Accounts SET Clan='"+Clan.tolower()+"' WHERE Name='"+Owner+"'COLLATE NOCASE" );
    QuerySQL( db, "INSERT INTO ClanMembers ( Clan , Owner, Leader1, Leader2, Leader3, Users  ) VALUES ( '"+Clan.tolower()+"', '"+Owner+"', 'null', 'null', 'null', 'Members:' )" );
    QuerySQL( db, "INSERT INTO ClanStats ( Tag, Clan , Kills, Deaths, Deads ) VALUES ( '"+Clan+"', '"+Clan.tolower()+"', '0', '0', '0' )" );
    QuerySQL( db, "CREATE TABLE IF NOT EXISTS "+Clan.tolower()+" ( Clan TEXT, Member TEXT, Reporter TEXT, Reason TEXT, Date_Of_Report TEXT )" );
    ServerMessage( "Admin "+player.Name+" has registered a new clan:[ "+Clan+" ] clan admin:[ "+Owner+" ]." )

    }
5
Support / Camlook back
« on December 31st, 2018, 04:49 AM »
HI my player is stand behind the camera and i want my camlook to watch back can any one help me ? how do i make my camera look back

Code: [Select]
<PlayerPos x="-1075.53" y="-87.1977" z="11.3938"/>
   
<CamPos x="-1067.77" y="-86.4161" z="11.2698"/>
 
<CamLook x="10.100" y="10.300" z="100.77"/>
<WorldBoundaries x1="5000.0" x2="-5000.0" y1="5000.0" y2="-5000.0"/>
6
Support / VCMP mods Files ??
« on December 28th, 2018, 03:08 PM »
hi there i am trying to add mods i like to add this one
https://www.gtainside.com/en/vicecity/mods/590-hanf-shop-f-r-vice-city/?fbclid=IwAR16A_TKQXrWmNUm_F59HjRxtB-5BckvRggG4yaowguL2SyFNrIPoeAmh74

kindly please i am new in mods so don't make fun of me

ok so i think its an object and we need another file name diff the question is how can i make that file and after getting it how can i please it on server? i know i have to place it on Store/object but with coding how can i tell it to place there ?
7
Support / Gui read the data base ?
« on December 27th, 2018, 12:34 PM »
Hi how do i use GUI to read the data base ? like when something update on db its show on Server ( with gui )
8
Support / Topclan not in one line
« on December 27th, 2018, 07:11 AM »
Hi i am trying to add top clan and facing a problem
top clans are not in line you can see after "Top 5 Killers MD" its start showing from down any solution ? Here's my code



Code: [Select]
else if ( cmd == "topclan" )
        {
          local
     query = "SELECT Clan, Kills FROM ClanStats ORDER BY Kills DESC LIMIT 5", //Top 5
      q,
      name1, name2, name3, name4, name5,
      kills1, kills2, kills3, kills4, kills5, i = 1;
   
     q = QuerySQL( db, query );
     while( GetSQLColumnData( q, 0 ) )
     {
             switch(i)
             {
                    case 1:
                              name1 = GetSQLColumnData( q, 0 );
                              kills1 = GetSQLColumnData( q, 1 );
                              break;

                   case 2:
                              name2 = GetSQLColumnData( q, 0 );
                              kills2 = GetSQLColumnData( q, 1 );
                              break;

                   case 3:
                             name3 = GetSQLColumnData( q, 0 );
                             kills3 = GetSQLColumnData( q, 1 );
                             break;

           case 4:
                             name4 = GetSQLColumnData( q, 0 );
                             kills4 = GetSQLColumnData( q, 1 );
                             break;

                case 5:
                             name5 = GetSQLColumnData( q, 0 );
                             kills5 = GetSQLColumnData( q, 1 );
                             break;
            }

             GetSQLNextRow( q );
             i++;
     }
     FreeSQLQuery(q);
      ClientMessage( "Top 5 Killers: " + name1 + " Kills: " + kills1 + " | " + name2 + " Kills: " + kills2 + " | " + name3 + " Kills: " + kills3 + " | " + name4 + " Kills: " + kills4 + " | " + name5 + " Kills: " + kills5 + "." player, 255, 255,  0  );
}
9
Support / tempban problem wrong format error
« on December 23rd, 2018, 08:04 AM »
Well i give proper command but the function said  "Wrong format, day:hour:min (Numeric)"
What's wrong ?



Code: [Select]
function IRCAddBan( nick, player, expire, reason = "No Reason" )

{
try{
     //Equation = (DAYS*24*60*60) + (HOUR*60*60) + (MIN*60)
     local ban_Expire = split( expire, ":" ); //days:hours:minutes
if( NumTok( expire, ":" ) == 3 )
{
if( !IsNum( ban_Expire[ 0 ] ) &&  !IsNum( ban_Expire[ 1 ] ) && !IsNum( ban_Expire[ 2 ] ) )
{
         if( ban_Expire[ 0 ].tointeger() <= 31 && ban_Expire[ 1 ].tointeger() <= 24 && ban_Expire[ 2 ].tointeger() <= 60 )
{
        local ban_Expires = ( (ban_Expire[ 0 ].tointeger()*24*60*60) + (ban_Expire[ 1 ].tointeger()*60*60) + (ban_Expire[ 2 ].tointeger()*60) ), 
                    Calc = ban_Expire[ 0 ] + " days " + ban_Expire[ 1 ] + " hours " + ban_Expire[ 2 ] + " minutes.",
                    query = QuerySQL( db, "INSERT INTO Tempban( ban_nick, ban_ip, ban_time, ban_expire, ban_expireratio, ban_admin, ban_reason ) VALUES ( '"+ player.Name.tostring() +"','"+ player.IP.tostring() +"','"+ time().tostring() +"', '"+ ban_Expires.tostring() +"', '" + expire.tostring() + "', '"+ user.tostring() +"', '"+ reason.tostring() +"')");
Message( "Admin " + nick + " has tempbanned " + player.Name + " Reason: " + reason + " for " + Calc + "" );
Staff(  ICOL_RED +"You have tempbanned " + player.Name + " successfully!" );
EchoMessage( ICOL_RED + "[" + player.ID + "] " + player.Name + " left the Server. (Kicked)." );
KickPlayer( player );
}
}
else Staff(  ICOL_RED + "Time should be numeric (day:hour:min)" );
}
else Staff(  ICOL_RED + "Wrong format, day:hour:min (Numeric)" );
}
catch(e) print( "Tempban function Error: " + e );
}

10
Support / userlevels on irc
« on December 22nd, 2018, 01:56 PM »
Hi i am using echo.multi.userlevels and trying to add acmds level function but unable to add it due to lack of knowledge my question is how do i use "FindLevel" function on irc in order to get acmds
like ~ = level 5
      @= level 4
      %= level2

kindly download the file by clicking on it hope you get it

Code: [Select]
function StaffCommands( nick, cmd, text )
{

if ( ( cmd == "acmds" ) || ( cmd == "admincmds" ) )
    {
    if ( level < 3 ) Staff( "You have to be a admin to use this command." );
         else
    {
    if ( level == 3 ) Staff(  "!getip, !ac !ogetip !ann, !mute, !unmute, !kick, !slap." );
            if ( level == 4 ) Staff( "banlist ac ogetip !oipnick !getip, !ann, !mute, !unmute, !kick, !freeze, !unfreeze, !ban, !unban, !drown, ." );
            if ( level == 5 ) Staff( "blah blah" );
            if ( level == 6 ) Staff(  blah);
 }
11
Scripting and Server Management / FBS irc script ?
« on December 16th, 2018, 02:45 PM »
Hi there where can i download FBS irc script ?
12
Support / : Property system bug
« on September 21st, 2018, 03:05 PM »
Hi thanks for your help i am facing an other problem now cmd not placing Name on DB kindly check the image and function

Code: [Select]
function CreateProperty( name, price, x, y, z, world )
{
    local see_dbProperties = QuerySQL ( dbProperties, "SELECT * FROM sqlite_master WHERE type='table' AND name='Properties'" );
    if( !see_dbProperties ) return print( "[dbProps] There are no properties." );
    else FreeSQLQuery( see_dbProperties );
   
        local p = CreatePickup( PROP_MODEL_FORSALE, world, 0, x, y, z, 255, true );
        if( p )
        {
            prop[ p.ID ] = null;
            prop[ p.ID ] = Property(); // important
            prop[ p.ID ].ID = _srv_Properties;
            prop[ p.ID ].Name = name;
            prop[ p.ID ].Price = price;
            prop[ p.ID ].Owner = NO_OWNER_MSG;
            prop[ p.ID ].Sharing = NO_SHARING_MSG;
            prop[ p.ID ].Description = NO_DESCRIPTION_MSG;
            prop[ p.ID ].x = x;
            prop[ p.ID ].y = y;
            prop[ p.ID ].z = z;
            prop[ p.ID ].World = world;
           
            local   query = format( "INSERT INTO Properties ( ID, Name, Price, Owner, Sharing, Description, x, y, z, World ) VALUES ( %i, '%s', %i, '%s', '%s', '%s', %f, %f, %f, %i )",
                        _srv_Properties, name, price, NO_OWNER_MSG, NO_SHARING_MSG, NO_DESCRIPTION_MSG, x, y, z, world );
                       
            QuerySQL( dbProperties, query );
           
            _srv_Properties += 1;
        }
}

Code: [Select]
else if( cmd == "addprop" )
        {
            if( !text ) return pMSG( "Error - Syntax: /" + cmd + " <price> <name>", player );
            else if( player.Vehicle ) return pMSG( "Error - Exit the vehicle first.", player );
            else if( NumTok( text, " " ) < 2 ) return pMSG( "Error - Syntax: /" + cmd + " <price> <name>", player );
            else if( typeof( GetTok( text, " ", 1 ).tointeger() ) != "integer" ) return pMSG( "Error - Usually 'price' means numbers...", player );
            else if( GetTok( text, " ", 2, NumTok( text, " " ) ).tolower() == "default" ) return pMSG( "Error - The name 'default' cannot be used.", player );
            else
            {
                local   price = GetTok( text, " ", 1 ).tointeger(),
                        name = GetTok( text, " ", 2, NumTok( text, " " ) );
                 
                CreateProperty( name, price, player.Pos.x, player.Pos.y, player.Pos.z, player.World )                 
                pMSG( "[dbProperties]: Property " + name + " was created.", player);
            }
        }
13
Support / plugin is for incompatible API version 0.0 (current is 2.0).
« on September 21st, 2018, 10:52 AM »
I am getting this error
"plugin is for incompatible API version 0.0 (current is 2.0)."

 i am trying to download latest version of plugins but site is down  ( http://v04.maxorator.com/allplugins_04rel004_patch7.7z )

14
Support / Re: Vcruntim140.dll
« on September 21st, 2018, 06:16 AM »
Quote from ysc3839 on September 20th, 2018, 10:45 AM
Download and install this https://aka.ms/vs/15/release/vc_redist.x86.exe . Don't use a dll from Internet, that may cause problem.
Thanks for your reply but its giving error how can i fix it ?
15
Support / Vcruntim140.dll
« on September 20th, 2018, 07:15 AM »
Any way to fix it ?