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

#1
Quote from: Athanatos on Aug 05, 2022, 08:52 AM
Quote from: Kalee on Aug 02, 2022, 05:49 PMEveryone is waiting for 007 now :skull
HOW DARE YOU BUMP THIS THREAD AND GIVE ME FALSE HOPES!?

:pain:

don't worry, 007 is coming its on the way ;D
#2
Everyone is waiting for 007 now :skull
#3
Finally, Fixed the Problem.
#4
Quote from: Xmair on Mar 19, 2021, 08:45 PMYou will have to disable the default class system used by VCMP through SetUseClasses(false) and create your own class system.
It still occures even when you disable the default class system too
https://ibb.co/qFZC3z7
#5
Videos & Screenshots / Kalee's Captures
Sep 27, 2021, 01:46 PM
Know how to give them infinite run easily with 101% guarantee :P

https://www.youtube.com/watch?v=n4ze5BHexSY
#6
If i create its own objects in single player by med, the would it work converting the.ipl to .xml in or what?
#7
Quote from: Sonmez on Nov 18, 2020, 11:48 AM
Quote from: kalee_khan on Nov 17, 2020, 01:19 PM
Quote from: Sonmez on Nov 16, 2020, 02:48 PM
Quote from: Inferno on Nov 16, 2020, 02:16 PM
Quote from: Sonmez on Nov 16, 2020, 02:04 PMYou can use this.
if (cmd=="changecol")
{
    if( !text ){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    if (!GetTok( text, " ", 1 )||!GetTok( text, " ", 2 )||!GetTok( text, " ", 3 )||GetTok( text, " ", 4 )){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
     if (!IsNum(GetTok( text, " ", 1 ))||!IsNum(GetTok( text, " ", 2 ))||!IsNum(GetTok( text, " ", 3 ))){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    local vehicle = FindVehicle(GetTok( text, " ", 1 ).tointeger())
    if (!vehicle){MessagePlayer("[#95fcff]WARN >[#E0E0E0]Wrong Vehicle ID",player); return false;}
    local col1 = GetTok( text, " ", 2 ).tointeger();
    local col2 = GetTok( text, " ", 3 ).tointeger();
    QuerySQL( Vehicles,"UPDATE Creation SET Col1='"+col1+"' WHERE ID='"+vehicle.ID+"'");
    QuerySQL( Vehicles,"UPDATE Creation SET Col2='"+col2+"' WHERE ID='"+vehicle.ID+"'");
    Message("[#990000]#[#E0E0E0]SERVER[#990000]# [#E0E0E0]ADMIN ["+player.Name+"] changed the car color, ID: "+VehicleID+" Color-1: "+ColID1+" Color-2: "+ColID2);
}


It will still throw the same console error when cmd is typed as /cmd carID and not whole cmd.
And it wont show ingame syntax for half cmd.

Also you can use :

if(!IsNum(ColID1)) return MessagePlayer(" Colour ID must be integer ",player); Instead of
if(!IsNum(ColID1)) {
MessagePlayer(" Write Integer ",player);
return false;
}



This line already solves the problem mentioned:
if (!IsNum(GetTok( text, " ", 1 ))||!IsNum(GetTok( text, " ", 2 ))||!IsNum(GetTok( text, " ", 3 ))){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}

Im I oly need to add the "Return"?

Just try this:
if (cmd=="changecol")
{
    if( !text ){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    if (!GetTok( text, " ", 1 )||!GetTok( text, " ", 2 )||!GetTok( text, " ", 3 )||GetTok( text, " ", 4 )){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
     if (!IsNum(GetTok( text, " ", 1 ))||!IsNum(GetTok( text, " ", 2 ))||!IsNum(GetTok( text, " ", 3 ))){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    local vehicle = FindVehicle(GetTok( text, " ", 1 ).tointeger())
    if (!vehicle){MessagePlayer("[#95fcff]WARN >[#E0E0E0]Wrong Vehicle ID",player); return false;}
    local col1 = GetTok( text, " ", 2 ).tointeger();
    local col2 = GetTok( text, " ", 3 ).tointeger();
    QuerySQL( Vehicles,"UPDATE Creation SET Col1='"+col1+"' WHERE ID='"+vehicle.ID+"'");
    QuerySQL( Vehicles,"UPDATE Creation SET Col2='"+col2+"' WHERE ID='"+vehicle.ID+"'");
    Message("[#990000]#[#E0E0E0]SERVER[#990000]# [#E0E0E0]ADMIN ["+player.Name+"] changed the car color, ID: "+VehicleID+" Color-1: "+ColID1+" Color-2: "+ColID2);
}

An error has Occured the index GetTock Does'nt exist.
#8
Quote from: Sonmez on Nov 16, 2020, 02:48 PM
Quote from: Inferno on Nov 16, 2020, 02:16 PM
Quote from: Sonmez on Nov 16, 2020, 02:04 PMYou can use this.
if (cmd=="changecol")
{
    if( !text ){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    if (!GetTok( text, " ", 1 )||!GetTok( text, " ", 2 )||!GetTok( text, " ", 3 )||GetTok( text, " ", 4 )){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
     if (!IsNum(GetTok( text, " ", 1 ))||!IsNum(GetTok( text, " ", 2 ))||!IsNum(GetTok( text, " ", 3 ))){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}
    local vehicle = FindVehicle(GetTok( text, " ", 1 ).tointeger())
    if (!vehicle){MessagePlayer("[#95fcff]WARN >[#E0E0E0]Wrong Vehicle ID",player); return false;}
    local col1 = GetTok( text, " ", 2 ).tointeger();
    local col2 = GetTok( text, " ", 3 ).tointeger();
    QuerySQL( Vehicles,"UPDATE Creation SET Col1='"+col1+"' WHERE ID='"+vehicle.ID+"'");
    QuerySQL( Vehicles,"UPDATE Creation SET Col2='"+col2+"' WHERE ID='"+vehicle.ID+"'");
    Message("[#990000]#[#E0E0E0]SERVER[#990000]# [#E0E0E0]ADMIN ["+player.Name+"] changed the car color, ID: "+VehicleID+" Color-1: "+ColID1+" Color-2: "+ColID2);
}


It will still throw the same console error when cmd is typed as /cmd carID and not whole cmd.
And it wont show ingame syntax for half cmd.

Also you can use :

if(!IsNum(ColID1)) return MessagePlayer(" Colour ID must be integer ",player); Instead of
if(!IsNum(ColID1)) {
MessagePlayer(" Write Integer ",player);
return false;
}



This line already solves the problem mentioned:
if (!IsNum(GetTok( text, " ", 1 ))||!IsNum(GetTok( text, " ", 2 ))||!IsNum(GetTok( text, " ", 3 ))){MessagePlayer("/changecol <Veh/ID> <Col1/ID> <Col2/ID>",player); return false;}

Im I oly need to add the "Return"?
#9
Quote from: MEGAMIND on Nov 05, 2020, 02:28 PM/changecol <car id> <col1> <col2>Means
/changecol -> is a cmd
<car id> -> vehicle id
<col1> -> color 1
<col2> -> color 2

so it goes like this

/changecol 191 1 5

No,I my mean is that when i type the cmd like /changecol.and left the other text empty,it show the error message but if i type one text (i mean /changecol 191 )and left the third empty it dont show error message.help!
#10
Quote from: =TRC=Kelvin on Nov 05, 2020, 06:09 PMhttp://wiki.adtec.ovh/wiki/Scripting/Squirrel/Client_Functions#GUILabel

_label <- null;

function Script::ScriptLoad()
{
 local
 screenSize          = ::GUI.GetScreenSize(),
 label               = ::GUILabel( ::VectorScreen( ( screenSize.X * 0.005 ), ( screenSize.Y * 0.96 ) ), ::Colour( 255, 255, 255 ), format( "Hey, %s. Welcome to the server!", ::World.FindLocalPlayer().Name ) );
 label.FontName      = "Verdana";
 label.FontSize      = ( screenSize.X * 0.2 );
 label.FontFlags     = GUI_FFLAG_BOLD;
 label.TextAlignment = GUI_ALIGN_LEFT;

 ::_label = label;
}


which will display:
[spoiler="Click here!"][/spoiler]

if you want to delete the message, use:
::_label = null;

thanks its helpful
#11
When I try to type like like this "/changecol", an error message occurres from scripts "/changecol <car id> <col1> <col2>", but if I try like this "/changecol 132 \or any id else" ,The server gives no response ,no message comes out like /changecol <id> <col> <col>

here is the command code:


 if (cmd=="changecol")
{
if( !text ) MessagePlayer("[#E0E0E0]Code /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID>", player);
else if ( !player.IsSpawned ) MessagePlayer("[#E0E0E0]You must be spawn first", player );
else {
local TextSplit = split( text, " " ),VehicleID=TextSplit[ 0 ],ColID1=TextSplit[ 1 ],ColID2=TextSplit[ 2 ];
if ( !IsNum(VehicleID)) MessagePlayer("[#95fcff]WARN > [#E0E0E0]Code /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID>", player);
else if ( !IsNum(ColID1)) MessagePlayer("[#95fcff]WARN > [#E0E0E0]Code /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID>", player);
else if ( !IsNum(ColID2)) MessagePlayer("[#95fcff]WARN > [#E0E0E0]Code /"+cmd+" <Veh/ID> <Col1/ID> <Col2/ID>", player);
else if ( !FindVehicle(VehicleID.tointeger())) MessagePlayer("[#95fcff]WARN >[#E0E0E0]Wrong Vehicle ID",player);
else {
local v=FindVehicle(VehicleID.tointeger())
v.Colour1=ColID1.tointeger();
v.Colour2=ColID2.tointeger();
QuerySQL( Vehicles,"UPDATE Creation SET Col1='"+ColID1+"' WHERE ID='"+VehicleID+"'");
QuerySQL( Vehicles,"UPDATE Creation SET Col2='"+ColID2+"' WHERE ID='"+VehicleID+"'");
Message("[#990000]#[#E0E0E0]SERVER[#990000]# [#E0E0E0]ADMIN ["+player.Name+"] changed the car color, ID: "+VehicleID+" Color-1: "+ColID1+" Color-2: "+ColID2);
     }
     }
}
#12


I am trying to add my GUI but (!success) :-[.So plz help meby giving an example of GUI. I want when a player join server a welcome GUI message occures. ;D
#13
Quote from: MEGAMIND on Nov 02, 2020, 08:53 AMjust get a host, an get your problems solved

Yes But I don't know  hosting websites's names.that host vcmp's server.
#14
Quote from: Spiller on Oct 26, 2020, 10:23 AMCheck if your ports are properly forwarded,
Use Thijn's Connection Checker to confirm.

(if you don't know your IP address, just Google, "my IP address")

An error occured: Server down.
#15

Quote1- Open "Control Panel",
2- Set "View by: Large Icons",
3- Open "Windows Firewall",
4- Click "Allow an app or feature through Windows Firewall",
5- Click "Allow another app....."
6- Click "Browse"
7- Select "server64.exe or server32.exe" and add it,
8- Allow "Private and Public permissions for server.exe"

Restart server.exe and try again
 


'server64' is already in the list of exception.