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

#1
Support / Re: Linux plugin errors
Aug 21, 2019, 03:46 AM
Nothing we don't have here in the forum. And these are very suggestive things
Apparently you don't have the file mysql04rel64.
The error with the port can be another application using it. You can only have one application per port.
If you are trying to open two servers at the same time, change the port in server.cfg
#2
Support / Re: Linux plugin errors
Aug 19, 2019, 11:03 PM
Two more ways to solve this:
1. Stop being lazy and search the forum;
2. You solve it yourself and share it with us another way.

Read the link from step 1 and maybe you get a new solution
#3
Quote from: =RK=MarineForce on Jul 24, 2019, 05:49 PMi added my server files in to a vps it works but 1 problem
its does not loading main.nut
sqgamemode scripts/main.nut
Could not load script 'script/main.nut' cannot open the file NO Squirrel Mode was specified error
Maybe this?
#4
This goto function can freeze the player "forever".
if (player && plr)If plr leaves the server while the player is teleporting, it may freeze you as there is no other condition that only involves plr.
I think this would be a best alternative (also some adjustments to the goto function):
function goto(playerid, plrid) {
local player = FindPlayer(playerid), plr = FindPlayer(plrid);
if (player) {
if (plr) {
player.IsFrozen = false;
player.Pos = plr.Pos;
Message( "[#25e805]Information: [#f2f2f2]" + player + " has teleported to " + plr + "." );
}
else {
player.IsFrozen = false;
MessagePlayer("Error, plr has left!", player);
}
}
}
#5
Community Plugins / Re: Discord Plugin
Mar 26, 2019, 03:13 PM
I was using the wrong version, but I have another problem: in Linux, the plugin loads, but I have errors
v0.4, (c) 2007-2014 VC:MP Team
Loaded plugin: squirrel04rel64
Loaded plugin: announce04rel64
Loaded plugin: sqlite04rel64
Loaded plugin: sockets04rel64
Loaded plugin: discord04rel64
Loaded plugin: hash-linux64
Loaded plugin: json04rel64
Loaded plugin: geoip04rel64
** Started VC:MP 0.4 Server **
AN ERROR HAS OCCURED [the index 'SqDiscord' does not exist]
CALLSTACK
*FUNCTION [constructor()] scripts/Discord.nut line [11]
*FUNCTION [main()] scripts/Discord.nut line [140]
*FUNCTION [dofile()] NATIVE line [-1]
*FUNCTION [onScriptLoad()] scripts/main.nut line [255]
LOCALS
[this] INSTANCE
[myDiscord] NULL
[vargv] ARRAY
[this] TABLE
[this] TABLE
AN ERROR HAS OCCURED [the index 'SqDiscord' does not exist]
CALLSTACK
*FUNCTION [onScriptLoad()] scripts/main.nut line [255]
LOCALS
[this] TABLE

double load
[MODULE] Loaded Discord Connector for VC:MP 0.4 by Luckshya.
[MODULE] Loaded Discord Connector for VC:MP 0.4 by Luckshya.
#6
Community Plugins / Re: Discord Plugin
Mar 26, 2019, 01:56 PM
Plugin error >> LoadLibrary() 'plugins/discord04rel64.dll' failed: Code 126
Failed to load plugin: discord04rel64
#7
Very good this server. I liked playing in it. IVMP has a great chance of growing if scripters are interested in GTA IV.
Good job
#8
function onPlayerJoin(player) {
NewTimer( "AnnTest", 5000, 1, player.ID );
}

function AnnTest(playerid) {
local player = FindPlayer(playerid);
if (!player) return;
Announce(player.Name + ", FPS " + player.FPS + ", Ping " + player.Ping + ", IP " + player.IP + ".", player, 0);
}

#9
General Discussion / Re: question
Mar 13, 2019, 12:30 PM
What about the client side?
Some scripters use:
myVar <- 0;
function Script::ScriptLoad() {
    ::myVar = 1;
    Console.Print("Test: " + ::myVar);
}
or
myVar <- 0;
function Script::ScriptLoad() {
    myVar = 1;
    Console.Print("Test: " + myVar);
}
Both work, but...
Is this necessary for variables called from outside the function?
What is the correct way to use this in client?
#10
Quote from: rww on Mar 01, 2019, 03:48 PMBig bump (I don't want to do a new topic about IV-MP, no sense). I tested IV-MP T4, it's more stable than T3, now this mp is without crashes. I found some small bugs, deathmatching it's hard (maybe bcs standard full hp is 200.0, not 100.0, and sync isn't best). But 4 fun, playable. With servers... Only Argonath is active, I saw yesterday 10 players on this server ;) And I working 4fun on IV-DM and testing with LU-DM Team ;)

https://youtu.be/tUDSDzR1BUw

From LU, later VC-MP and GTA:O, sometimes SA-MP now IV-MP with LU-DM :D

[spoiler]

[/spoiler]
Online?
#12
Snippet Showroom / Re: Top Killers System
Mar 12, 2019, 03:32 PM
Quote from: UrbanY on Mar 12, 2019, 03:12 PMfunction onScriptLoad()
{
NewTimer( "TopKillers", 60000, 0 );
}
function TopKillers()

local
query = "SELECT Name, Mato FROM Accounts ORDER BY Name DESC LIMIT 5", //Top 5
q,
Name1, Name2, Name3, Name4, Name5,
Top1, Top2, Top3, Top4, Top5, i = 1; 
q = QuerySQL( db, query );
while( GetSQLColumnData( q, 0 ) )
{
switch(i)
{
case 1:
Name1 = GetSQLColumnData( q, 0 );
Top1 = GetSQLColumnData( q, 1 );
break;
case 2:
Name2 = GetSQLColumnData( q, 0 );
Top2 = GetSQLColumnData( q, 1 );
break;
case 3:
Name3 = GetSQLColumnData( q, 0 );
Top3 = GetSQLColumnData( q, 1 );
break; 
case 4:
Name4 = GetSQLColumnData( q, 0 );
Top4 = GetSQLColumnData( q, 1 );
break;
case 5:
Name5 = GetSQLColumnData( q, 0 ); 
Top5 = GetSQLColumnData( q, 1 );
break; 
}
GetSQLNextRow( q );
i++;
}
FreeSQLQuery(q);
Message("[#00ffff]Top 5 Matadores | Killers[#000000]: [#00bfff]" + Name1 + " [#ffffff]: [#00ff00]" + Top1 + ", [#00bfff]" + Name2 + " [#ffffff]: [#00ff00]" + Top2 + ", [#00bfff]" + Name3 + " [#ffffff]: [#00ff00]" + Top3 + ", [#00bfff]" + Name4 + " [#ffffff]: [#00ff00]" + Top4 + ", [#00bfff]" + Name5 + " [#ffffff]: [#00ff00]" + Top5 + "");
}
Quote from: Pau Grosso on Mar 11, 2019, 04:20 PMAnd I created a Top Killer system without using database every time it is called
#13
Quote from: Doom_Kill3R on Mar 12, 2019, 12:05 PMThis is achievable via client side scripting if you need it unofficially.
How? Sprite 3D?
#14
Snippet Showroom / Re: Top Killers System
Mar 12, 2019, 01:46 PM
I do not understand how the database structure of the various scripters here, so I used this:
/* Let's say we are loading the accounts from the database */
function loadAccounts() {
    Accounts.rawset(1, {Name = "Player1", Kills = rand() % 1000});
    Accounts.rawset(2, {Name = "Player2", Kills = rand() % 1000});
    Accounts.rawset(3, {Name = "Player3", Kills = rand() % 1000});
    Accounts.rawset(4, {Name = "Player4", Kills = rand() % 1000});
    Accounts.rawset(5, {Name = "Player5", Kills = rand() % 1000});
    Accounts.rawset(6, {Name = "Player6", Kills = rand() % 1000});
    Accounts.rawset(7, {Name = "Player7", Kills = rand() % 1000});
    Accounts.rawset(8, {Name = "Player8", Kills = rand() % 1000});
    Accounts.rawset(9, {Name = "Player9", Kills = rand() % 1000});
}
I'll put in original post.
#15
Snippet Showroom / Re: Top Killers System
Mar 12, 2019, 05:07 AM
Quote from: dracc on Mar 12, 2019, 12:08 AMYou're using a table anyway, why not just use player.Name as key and kills as value and then populate a five slot array accordingly in your topKills() function? Would save a lot of lookup-complexity and lines of code.
Also, what happens when you don't have five players in your Accounts table? Should result in some nasty errors as you go out-of-bounds.

player.Name? hhhhh How am I going to use this if I'm checking all the accounts and not just the online players?
TopKillers!!!!
BEST 5 KILLS FROM ALL SERVER ACCOUNTS