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 - Finch

#1
no steam this line is not in my svr onplayerjoin but when i add this onplayerinfo it bug script so i remove it
#2
playerinfo your mean accinfo?
#3
i haert warchief to 0.4 and i add all system in it but when i quit stats are not save it say on console GetStats index IsReg does not exist

this is getstats
function SaveStats( player )
{
       try{
   local id = player.ID;
   if ( status[ id ].IsReg == true )
   {
       QuerySQL( db, "UPDATE Account SET Kills='" + status[ id ].Kills + "', Deaths='" + status[ player.ID ].Deaths + "', Cash='" + status[ id ].Cash + "', Bank='" + status[ id ].Bank + "', Joins='" + status[id].Joins + "' WHERE Name='" + player.Name.tolower() + "'" );
   print( "Saved Stats of Player " + player.Name + "[" + player.ID + "]" );
   status[ id ] = null;
   }
   }
   catch(e) print( "Save Stats Error: " + e );
}
#4
this is error on console
An error code <10061> occured preparing to try to announce the server
 
#5
same problem to me when i load server.config no commands work
#6
Scripting and Server Management / Server Down
Apr 20, 2015, 04:45 AM
Hello Friends
My Server is not showing on masterlist of 0.4 i also has loaded announce04rel32 plugins but when i check from this http://thijn.minelord.com/vcmp/checker/ it say on0.4 mastler list No i also port forward what is error
#7
Snippet Showroom / Re: Let's Walk!
Apr 20, 2015, 03:53 AM
BigCat i check it out it cool
But its Lag
#8
i think so u have loaded plugins in two lines
check on server.cfg is their is plugin two times?
#9
Scripting and Server Management / Re: Forsale
Apr 19, 2015, 02:32 PM
i dont wanna make any other account i just want help in this system
#10
Scripting and Server Management / Re: Forsale
Apr 19, 2015, 12:53 PM
Doom Killer stfu i dont want to increase my post
This is my final topic on this forum this is last bug of my script i just want your help so
Please...
#11
Scripting and Server Management / Forsale
Apr 19, 2015, 06:49 AM
My forsale system  not working when i do /forsale it say total cars 0 rc 0 bikes 0 etc 0
this is command and whole function

function Start()
{
    try{
local a = 1;
while( a <= GetVehicleCount() )
{
QuerySQL( sqliteDB, "UPDATE Cars SET Owner='Vice-City' WHERE ID='" + a + "'" );
a ++;
}
}
catch(e) print( "lol: " + e );

}

function Cars()
{
local a = 1, MaxCars = GetVehicleCount();
while ( a <= MaxCars )
{
local veh = FindVehicle( a );
if ( veh )
{
QuerySQL( sqliteDB, "REPLACE INTO Cars ( ID, Cost, Owner, Shared ) VALUES ( '" + veh.ID + "', '100000', 'Vice-City', 'None' )" );
}
a ++;
}
}

function ForsaleCars()
{local a = 1, b = 0;
while ( a <= GetVehicleCount() )
{local q = QuerySQL( sqliteDB, "SELECT * FROM Cars WHERE ID='" + a.tointeger() + "'" );
if ( GetSQLColumnData( q, 2 ) == "Vice-City" )
{b++;
local veh = FindVehicle( a.tointeger() );
local vehicle = GetVehicleType( veh.Model );
if ( vehicle == "Car" ) Car++;
else if ( vehicle == "Plane" ) Plane++;
else if ( vehicle == "Boat" ) Boat++;
else if ( vehicle == "RC" ) RC++;
else if ( vehicle == "Bike" ) Bike++;
else if ( vehicle == "Heli" ) Heli++;
}
a++;
}
return b;
}
function GetVehicleType( model ) {
// Returns: Car / Bike / Heli / Plane / Boat / RC
switch ( model ) {
case 136:
case 160:
case 176:
case 182:
case 183:
case 184:
case 190:
case 202:
case 203:
case 214:
case 223:
return "Boat";
break;
case 155:
case 165:
case 217:
case 218:
case 227:
return "Heli";
break;
case 166:
case 178:
case 191:
case 192:
case 193:
case 198:
return "Bike";
break;
case 171:
case 194:
case 195:
case 231:
return "RC";
break;
case 180:
case 181:
return "Plane";
break;
default:
return "Car";
break;
}
}

function PlayerCars( player )
{
local a = 1, b = 0;
while ( a <= GetVehicleCount() )
{
if ( CarOwner( a ).tolower() == player.Name.tolower() )
{
b ++;
}
a ++;
}
return b;
}


Command

else if ( cmd == "forsale" )
{
Message( "Total Vehicles: " + ForsaleCars() + "." );
Message( "Cars: " + Car + ", Bikes: " + Bike + ", Planes: " + Plane + ", RC: " + RC + ", Boats: " + Boat + ", Helis: " + Heli + "." );
Empty();
}

and on scriptload

Car <- 0;
   Bike <- 0;
   RC <- 0;
    Plane <- 0;
   Boat <- 0;
   Heli <- 0;
#12
Problem Solve
#13
yeah it is sqliteDB
#14
Scripting and Server Management / ShareCar
Apr 17, 2015, 10:31 AM
My sharecar is not working when i do /sharecar Finch its say u are sharing car with Finch but when i do /car 0 its say shared none

else if ( cmd == "sharecar1" )
{
if ( stats[player.ID].Logged == true )
{
if ( stats[player.ID].Logged == true )
{
if ( player.Vehicle )
{
local Cars = QuerySQL( sqliteDB, "SELECT Owner FROM Cars WHERE ID LIKE '" + player.Vehicle.ID + "'" );

if ( GetSQLColumnData( Cars, 0 ) != player.Name ) ClientMessage ( "Error - You don't own this car.", player,255,255,0);
else
{
if ( text )
{
local plr = FindPlayer( text );

if ( plr )
{
   if ( stats[ player.ID].Logged == true )
{
QuerySQL( sqliteDB, "UPDATE Vehicles SET Shared = '" + plr.Name + "' WHERE ID = '" + player.Vehicle.ID + "'" );

ClientMessage ( "You are now sharing your " + GetVehicleNameFromModel( player.Vehicle.Model ) + " with " + plr.Name, player,255,255,0);

ClientMessage ( player.Name + " is now sharing his " + GetVehicleNameFromModel( player.Vehicle.Model ) + " (ID: " + player.Vehicle.ID + ") with you.", plr,255,255,0);
}
else ClientMessage ( "Error - " + plr.Name + " is not a registered nickname.", player,255,255,0);
}
else ClientMessage ( "Error - No such player.", player,255,255,0);
}
else ClientMessage ( "Usage: !" + cmd + " <nick/ID>", player,255,255,0);
}
}
else ClientMessage ( "Error - You need to be in the vehicle you want to share.", player,255,255,0);
}
else ClientMessage ( "Error - You are not logged in.", player,255,255,0);
}
else ClientMessage ( "Error - You haven't registered your nickname.", player,255,255,0);
}
#15
Updated Server Commands
    [#008080]register, [#D8BFD8]weather, top3, [#FF6347]stats, statsoff
     baninfo, login, sound, [#EE82EE]class, logout, alarm, alpha, reactions
      score, adminrules, playercars, [#F5DEB3]delsprit, offerdrugs, buydrugs, a, xmas, boxing, nick, adminship, [#FFFFFF]changeclothes, myip, key, ad, playercash
       levelup, toprichest, banlist, randspawn, ammo
      [#FFFF00](/)class, myname, nogoto, reports, playerreports
cash, mywep, ignore, shout, say, checkspawn, unignore
      [#FFFF00]plantbomb, buybomb, randspawn"
       givecash, level, [#BC8F8F]deposit, withdraw, bank, infp
   admins, wep,[#FFFAF0] ping, goto
      changeskin, hide, arm
   hp, heal, fog, clear,[#228B22] overcast, raining, sky, warefare, info, scripts
    paint1, paint2, [#228C22]mypos, dmessage
       rules, team, accept, deny,[#DCDCDC] leaveteam, lms, join, lmsstats, vote, votekick, disarm
   undrunk, time, credits, rcar, scorebuycar, getcar,[#DCDCDC] sellcar, carloc
     sharecar, enspawnwep,[#BDB76B] dspawnwep, gotocar, noon, ouchhosttime, night,[#BDB76B] players, killcar distance
    (/)mycars, mysharecars,[#8B008B] delsharecar
   (/)eject, gotosecretplace,[#008B8B] fix, country
   (/)leave, spawnplayer, hotkeys,[#008B8B] jail, unjail, cardive, topkillers
    "(/)fps, gotoloc,[#7FFF00] saveloc, giveheal
   spawn, killyourself
     (/)slap, spawnwep
     (/)delspawnwep, forum,[#7FFF00] irc, bigbang
           For Staff Use:[#5F9EA0] / acmds