46
Script Releases / Re: [Snippet] Apply animations - command
« on: September 25, 2014, 05:09:46 pm »
Nice
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.
<?xml version="1.0" encoding="ASCII" ?><?xml version="1.0" encoding="ASCII"?>
<objectlist>
<object id="0">
<flags value="0" />
<texture path="sanmonbhut1_law2.txd" />
<collision path="sanmonbhut1_law2.col" />
<model path="sanmonbhut1_law2.dff" distance="200" />
</object>
<object id="1">
<flags value="0" />
<texture path="electricgate.txd" />
<collision path="electricgate.col" />
<model path="electricgate.dff" distance="200" />
</object>
<object id="2">
<flags value="0" />
<texture path="road_downtown05.txd" />
<collision path="road_downtown05.col" />
<model path="road_downtown05.dff" distance="300" />
</object>
<object id="3">
<flags value="0" />
<texture path="road_downtown06.txd" />
<collision path="road_downtown06.col" />
<model path="road_downtown06.dff" distance="300" />
</object>
</objectlist>
<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
<item model="1840" name="road_downtown05">
<position x="-289.85" y="883.05" z="9.5994" />
<rotation format="axisangle" x="0" y="0" z="53.4" angle="1" />
</item>
<item model="1840" name="road_downtown06">
<position x="-388.808" y="844.454" z="11.0747" />
<rotation format="axisangle" x="0" y="0" z="2" angle="1" />
</item>
</itemlist>
The exception happened on a line of your code. But dont worry ill make my own (better) dialog system that supports images.Help!!!Quote from: VCMPServer.exeAN ERROR HAS OCCURED [arith op + on between null and integer]
CALLSTACK
*FUNCTION [KeyBindDialog()]
*FUNCTION [onKeyDown()]
LOCALS
...(nothing is null here...)
Can you tell me what have you done ?
hey can anyone give me the scripts of vccnr plzzz
thanks
What is what? I just want to script for 0.4, what do I download?
gamemode VC:MP Mode
plugins announce04rel32 hashing04rel32 sqlite04rel32 xmlconf04rel32 squirrel04rel32 < - you can add more
port 5192 // Your Port
sqgamemode main.nut // It loads the main squirrel file
else if ( cmd == "buyprop" )
{
local id = player.ID;
if ( !player.IsSpawned ) MessagePlayer( "[#FF0000][EFE] You haven't spawned yet..", player );
else if ( !text ) MessagePlayer( "[#FF0000][EFE] Error - /" + cmd + " <ID>", player );
else {
if ( GetRegistered( player ) == 0 ) MessagePlayer( "[#FF0000][EFE] Error - You must be a registered user to use this command", player );
else if ( status[player.ID].LoggedIn == 0 ) MessagePlayer( "[#FF0000][EFE] Error - You must be logged in to use this command", player );
else if ( !IsNum( text ) ) MessagePlayer( "[#FF0000][EFE] Error - ID must be Numbers", player );
else {
local s = QuerySQL( g_DB, "SELECT * FROM Props" );
local q = QuerySQL( g_DB, "SELECT * FROM Props WHERE ID LIKE '" + text + "'" );
if ( player.Cash < GetSQLColumnData( q, 2 ) ) MessagePlayer( "[#FF0000][EFE] Error - You need $" + GetSQLColumnData( q, 2 ) + " to Buy this!", player );
//if ( GetSQLColumnData( s, 4 ) == "None" )
else
{
if ( s )
{
QuerySQL( g_DB, "UPDATE Props SET Owner='" + player.Name + "' WHERE rowid LIKE = '" + text + "'" );
Message( "** " + player.Name + " Bought Property:[ " + GetSQLColumnData( s, 1 ) + " ] ID:[ " + text + " ]" );
//Announce( "~h~Property Purchased!", player, 0 );
// DecreaseCash( player, GetSQLColumnData( q, 2 ).tointeger() );
local data = GetSQLColumnData( s, 2 );
local cash = status[ player.ID ].Cash;
local det = cash - data;
local add = cash - data;
status[ player.ID ].Cash = det;
player.Cash= add;
}
else MessagePlayer( "[#FF0000][EFE] The Prop Not found in the Database!", player );
}
}
}
}