Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: UncleRus on May 03, 2020, 01:42 PM

Title: Who fix my problem?
Post by: UncleRus on May 03, 2020, 01:42 PM
In the log server AN ERROR HAS OCCURED [Error in 'mysql_fetch_assoc': Wrong number of arguments or invalid argument type]
wtf?
Title: Re: Who fix my problem?
Post by: habi on May 03, 2020, 03:24 PM
does it show any line number?

post 10 lines of code
Title: Re: Who fix my problem?
Post by: UncleRus on May 03, 2020, 04:01 PM

Habi, I have such garbage after I placed the script on the hosting
Title: Re: Who fix my problem?
Post by: UncleRus on May 03, 2020, 04:06 PM
And I probably have a problem and I go to the server for this, writes the connection to the server, loading information from the server for a couple of seconds, the convergence with the server is lost, can unnecessary plugins affect it
Title: Re: Who fix my problem?
Post by: UncleRus on May 03, 2020, 09:08 PM
function onPlayerCommand( player, cmd, text )
{
   if(player.Spawned == false )
   {
      MSGPLR(MSG_ERROR_EN+"You can't use commands when unspawned.",player,MSG_ERROR_RO+"Nu poti folosi comenzi cand nu esti spawnat.");
6line      return 0;
   }
   cmd = cmd.tolower();
   switch(cmd)
   {
      case "help":
      {
   waht fix it
Title: Re: Who fix my problem?
Post by: UncleRus on May 03, 2020, 09:09 PM
6 line
Title: Re: Who fix my problem?
Post by: habi on May 04, 2020, 04:23 AM
function onPlayerCommand( player, cmd, text )
{
   if(player.Spawned == false )
   {
      MessagePlayer(  "You can't use commands when not spawned" , player);
      return ;
   }
   cmd = cmd.tolower();
   switch( cmd )
   {
      case "help":
      {
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 12:41 PM
//Functii copiate
function GetTok(string, separator, n, ...)
{
line 172 local m = vargv.len() > 0 ? vargv[0] : n,
   tokenized = split(string, separator),
   text = "";
 if (n > tokenized.len() || n < 1) return null;
 for (; n <= m; n++)
 {
 text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
 }
 return text;
}

 what fix it line 172
Title: Re: Who fix my problem?
Post by: habi on May 07, 2020, 02:14 PM
Can you post screenshot?
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 02:39 PM
https://imgur.com/A65spDq
Title: Re: Who fix my problem?
Post by: habi on May 07, 2020, 03:29 PM
Post a screenshot of the server. black colour
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 04:11 PM
logs server
Title: Re: Who fix my problem?
Post by: MEGAMIND on May 07, 2020, 04:26 PM
;D
Quote from: UncleRus on May 07, 2020, 04:11 PMlogs server
Not logs the console, the fil which u use to run ur server, the one with exe extension
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 04:46 PM
I use pl hosting idont see fileon start my server
Title: Re: Who fix my problem?
Post by: habi on May 07, 2020, 04:51 PM
i think it is okay with the logs.
eg. https://imgur.com/a/CvhnOO4
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 04:52 PM
wait
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 04:56 PM
https://prnt.sc/scp7o5
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 04:56 PM
This?
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 05:07 PM

this happens when I want to ban someone else earlier it was written like this / ban <user> <reason> but right now it's just an empty tex and such an error in the console
Title: Re: Who fix my problem?
Post by: habi on May 07, 2020, 07:16 PM
sorry i was a bit late.

You have to use /ban playername

text cannot be empty.
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 07:24 PM
habi what a reason
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 07:24 PM
i need use reason
Title: Re: Who fix my problem?
Post by: UncleRus on May 07, 2020, 08:09 PM

Habi wrote a ban on a test PC the same thing and just do not ban
Title: Re: Who fix my problem?
Post by: habi on May 08, 2020, 02:54 AM
/ban  ---------------> error

/ban name reason      -------------------> correct

eg. /ban teddy hack

/ban john abuse

/ban killer_32 multiple_accounts
Title: Re: Who fix my problem?
Post by: UncleRus on May 08, 2020, 03:03 AM

Your example is correct, but I can't ban anyone from this error.
Title: Re: Who fix my problem?
Post by: habi on May 08, 2020, 03:13 AM
plugins ini04rel64

did you loaded this plugin?

when you ban a player, any message comes?

Title: Re: Who fix my problem?
Post by: UncleRus on May 08, 2020, 03:14 AM
plagin ini04rel4 instaled
Title: Re: Who fix my problem?
Post by: habi on May 08, 2020, 03:30 AM
ban a player using /ban name reason

Go to server logs and post the error. could you?
Title: Re: Who fix my problem?
Post by: UncleRus on May 08, 2020, 03:35 AM

there are no players on the server yet but when will I try
Title: Re: Who fix my problem?
Post by: UncleRus on May 09, 2020, 08:22 PM
Thanks habi its work