Squirrel plugin small bug / player.IP return 0.0.0.0

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 403
Squirrel plugin small bug / player.IP return 0.0.0.0
« on April 18th, 2015, 09:52 PM »Last edited on April 19th, 2015, 11:55 AM
GetVehicleModelFromName have some missings

After update missing too:
- Fbi Car
- FBI Rancher
- Pony

//============

Another bug:

Code: [Select]
function onPlayerPart(p,r)
{
print("[PART] ["+p.ID+"] [ "+p.Name+" ] IP: [ "+p.IP+" ] UID: [ "+p.UniqueID+" ]");
return 1;
}


Join to LU-DM Team Discord: https://discord.gg/PFwem6J

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,804
.

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 403
Re: Squirrel plugin small bug / player.IP return 0.0.0.0
« Reply #2, on April 19th, 2015, 01:02 AM »Last edited on April 19th, 2015, 01:04 AM
Quote from S.L.C on April 19th, 2015, 12:53 AM
Are you sure you got the names right? Could you show us the code you used for testing? Or, at least the names you used to call that function.
Yes, because in FunctionHandler.cpp

Code: [Select]
case 'b':
{
if( lowername[1] == 'o' )
{
if( strlen( lowername ) >= 3 )
{
if( lowername[2] == 'b' )
res = 152; // bobcat
else if( lowername[2] == 'x' )
res = 228; // boxville
}
}
else if( lowername[1] == 'a' )
{
if( strlen( lowername ) >= 3 )
{
if( lowername[2] == 'r' )
res = 163; // barracks ol
else if( lowername[2] == 'g' )
res = 215; // baggage handler
}
}
else if( lowername[1] == 'l' )
res = 226; // blista compact
else if( lowername[1] == 'e' )
res = 229; // benson

break;
}

where is banshee in this code?

I use /v [car name] for car spawn

/v blista work but /v banshee doesn't work etc...

Join to LU-DM Team Discord: https://discord.gg/PFwem6J

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,128
Re: Squirrel plugin small bug / player.IP return 0.0.0.0
« Reply #3, on April 19th, 2015, 01:07 AM »Last edited on April 19th, 2015, 02:24 AM
For bookkeeping purposes, please don't report two bugs in one thread. It makes tracking individual issues harder to deal with.

Some of those cars should already be tracked by Squirrel. Some of those cars don't even exist in VC (FBI Car is III; only the Cuban Jetmax exists in VC, what is Jetmax?). The rest will be handled accordingly.

Does the 0.0.0.0 issue occur always, often or rarely?

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,804
Re: Squirrel plugin small bug / player.IP return 0.0.0.0
« Reply #4, on April 19th, 2015, 01:22 AM »
This is the one that I use in my plugin. If you can remove the C++ specific code such as the algorithms used to clean the name and and the use of the standard string. Then you are free to use it in your code. I rewrote, most of the identification functions from scratch and I remember I included all the models. The one for the skin might be bugged and it's waiting for a revision. But other than that, they can all be found in the Misc/Identifiers.cpp on the repository.
.

DizzasTeR

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,205
Re: Squirrel plugin small bug / player.IP return 0.0.0.0
« Reply #5, on April 19th, 2015, 04:09 AM »
Players also reported me about the comet not spawning, but not sure about the rest of the vehicles, I remember typing the ID of these car works but typing the name doesn't recognize it.

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 403
Re: Squirrel plugin small bug / player.IP return 0.0.0.0
« Reply #6, on April 19th, 2015, 11:34 AM »Last edited on April 19th, 2015, 11:55 AM
Quote from stormeus on April 19th, 2015, 01:07 AM
For bookkeeping purposes, please don't report two bugs in one thread. It makes tracking individual issues harder to deal with.

Some of those cars should already be tracked by Squirrel. Some of those cars don't even exist in VC (FBI Car is III; only the Cuban Jetmax exists in VC, what is Jetmax?). The rest will be handled accordingly.

Does the 0.0.0.0 issue occur always, often or rarely?


After update missing too:
- Fbi Car
- FBI Rancher
- Pony

Join to LU-DM Team Discord: https://discord.gg/PFwem6J

Gudio

  • Full Member
  • Gudio.eu
  • Posts: 125

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,128

Gudio

  • Full Member
  • Gudio.eu
  • Posts: 125

rObInX

  • Jr. Member
  • Posts: 68

Kratos_

  • Jr. Member
  • Mutaros Apotheoses
  • Posts: 86
In the middle of chaos , lies opportunity.

rww

  • VC:MP Beta Tester
  • LU-DM Team
  • Posts: 403

Join to LU-DM Team Discord: https://discord.gg/PFwem6J