Quote from: Athanatos on Aug 05, 2022, 08:52 AMQuote from: Kalee on Aug 02, 2022, 05:49 PMEveryone is waiting for 007 now :skullHOW DARE YOU BUMP THIS THREAD AND GIVE ME FALSE HOPES!?
:pain:
don't worry, 007 is coming its on the way
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 MenuQuote from: Athanatos on Aug 05, 2022, 08:52 AMQuote from: Kalee on Aug 02, 2022, 05:49 PMEveryone is waiting for 007 now :skullHOW DARE YOU BUMP THIS THREAD AND GIVE ME FALSE HOPES!?
:pain:
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
Quote from: Sonmez on Nov 18, 2020, 11:48 AMQuote from: kalee_khan on Nov 17, 2020, 01:19 PMQuote from: Sonmez on Nov 16, 2020, 02:48 PMQuote from: Inferno on Nov 16, 2020, 02:16 PMQuote 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 ofif(!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);
}
Quote from: Sonmez on Nov 16, 2020, 02:48 PMQuote from: Inferno on Nov 16, 2020, 02:16 PMQuote 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 ofif(!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;}
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
/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!
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;
Quote from: MEGAMIND on Nov 02, 2020, 08:53 AMjust get a host, an get your problems solved
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")
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