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 - Nihongo^

#21
Hi i am getting this error when the race get canceled when no one join it



here's the line 64



function closerace() {
    Message( "Race cancelled!" );
    race = false;
 racestart = false;
    racecount = 0;

 Vehicle1.Remove();
 Vehicle2.Remove();
 Vehicle3.Remove();
 Vehicle4.Remove();

 Checkpoint0.Remove();
 Checkpoint1.Remove();
 Checkpoint2.Remove();
 Checkpoint3.Remove();
 Checkpoint4.Remove();
 Checkpoint5.Remove();
 Checkpoint6.Remove();
 Checkpoint7.Remove();
 Checkpoint8.Remove();
 Checkpoint9.Remove();
 Checkpoint10.Remove();

 RPickup.Remove();
 
 for( local i=0; i<1000; i++ ){
 DestroyMarker( i );
 }
 
    local plr;
    for( local i=0; i <= GetMaxPlayers(); i++ ){
  {
      plr = FindPlayer( i );
      if ( plr )
            {
    if( Stats[ plr.ID ].raceplayer )
    {
                    Stats[ plr.ID ].raceplayer = false;
                    plr.IsFrozen = false;
                    plr.Pos = Vector( 496.26, -83.9443, 10.0302  );
    }
            }
        }
 }

}


P.S Also i tried Pickup.Remove(); but giving the same error
#22
Script read the data from the database

I removed tank and hunter from the database ( ID 132 and 136 ) after that whenever someone type /car it gives this error ( its gives error on some vehicles )

when i used my old database ( which contain tank and hunter ) the function works fine and give the details of every cars

Kindly suggest me what i do now ? i don't want to put back tank and hunter

p.s when i type admin command /spawncar 132 its spawn tank if i remove tank from the database it spawn pizza bike (which gives error)

Quotefunction VehicleInfo( player, veh )
{
  local Query = QuerySQL(vdb, "SELECT * FROM Vehicles WHERE VehID = '"+veh+"' " ),
    VehMod = GetSQLColumnData( Query, 0 ),
    VehOwner = GetSQLColumnData( Query, 4 ),
    VehCost = GetSQLColumnData( Query, 5 ),
    VehShared = GetSQLColumnData( Query, 6 ),
  VehID = GetSQLColumnData( Query, 7 ),
  HP = player.Vehicle.Health / 10;

    SendMessage( "Vehicle: "+GetVehicleNameFromModel( VehMod )+", ID: "+VehID+", Health: "+HP+" Price: "+VehCost+", Owner: "+VehOwner+", Shared With: "+VehShared+".", player );

FreeSQLQuery( Query );
}

#23
Why i keep getting this error when i join server its giving me the same error OnPlayerKill function when i headshot

status[ killer.ID ].Headshots++;
#24
Support / Adding discord in server
Jun 18, 2022, 05:51 AM
Hi friends hope you guys are fine

So i am scripting a server and now its time to put discord on it, I am completely new in the world of discord features. I only know about the IRC and it was simple now we have to move to discord :D

i did some research and found [MODULE] Discord module for SqMod

I put the plugins and install OpenSSL, the plugin loaded successfully but it gave error at "Constructor"

I only put discord.nut and plugins

#25
Support / Not showing in the masterlist
Jun 11, 2022, 04:36 PM
Hi, I am trying to host server in the Linux but it's not showing in the master list nor in favorite. Anyone can help me?

#26
General Discussion / Game Full screen ?
Oct 25, 2020, 12:05 PM
How do i make it appear full on my LCD ?

#27
Hi guys i am receving an error "Null0000" after getting weapon how do i fix it ?


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 );
 }
}
#28
Quote from: ! on Jan 01, 2019, 01:57 PMRegisterClan( 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

QuoteThe 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

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 );
}
#29
Support / Nick not register Clan bug
Dec 31, 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
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

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+" ]." )

    }
#30
Support / Camlook back
Dec 31, 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

<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"/>
#31
Support / VCMP mods Files ??
Dec 28, 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 ?
#32
Support / Gui read the data base ?
Dec 27, 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 )
#33
Support / Topclan not in one line
Dec 27, 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



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  );
}
#34
Support / tempban problem wrong format error
Dec 23, 2018, 08:04 AM
Well i give proper command but the function said  "Wrong format, day:hour:min (Numeric)"
What's wrong ?



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 );
}

#35
Support / userlevels on irc
Dec 22, 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

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);
 }
#36
Hi there where can i download FBS irc script ?
#37
Support / : Property system bug
Sep 21, 2018, 02: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

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;
        }
}

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);
            }
        }
#38
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 )

#39
Support / Re: Vcruntim140.dll
Sep 21, 2018, 05:16 AM
Quote from: ysc3839 on Sep 20, 2018, 09:45 AMDownload 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 ?
#40
Support / Vcruntim140.dll
Sep 20, 2018, 06:15 AM
Any way to fix it ?