View Issue Details

IDProjectCategoryView StatusLast Update
0009760New issuesGeneralpublic2017-12-03 21:28
ReporterMisterQuestionsAssigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0009760: 'getPlayersInTeam' OOP variable and function not working
Description

Once you have a team and want to use the variable .players or method :getPlayers() there's no result.

Steps To Reproduce

I've looped getElementsByType("team"), then tried to use with team the variable or method and there was a nil result.

TagsNo tags attached.

Activities

Bonus1702

2017-11-13 21:35

viewer   ~~0026288

Serverside or clientside?

MisterQuestions

2017-12-03 06:53

viewer   ~~0026325

Client side.

Necktrox

2017-12-03 17:52

developer   ~~0026329

Can not reproduce, could you provide code?

Executing client-side command: getTeamFromName("Geronimo").players[1].team.name
Command results: Geronimo [string]

Bonus1702

2017-12-03 20:56

viewer   ~~0026331

Team.players couldn't have worked, that's right.
https://github.com/multitheftauto/mtasa-blue/pull/168
But getPlayers()? Have to test it.

Bonus1702

2017-12-03 21:10

viewer   ~~0026332

Oh right, there is no "getPlayers", too.
Should be added

Bonus1702

2017-12-03 21:28

viewer   ~~0026333

Added pull request for getPlayers, too.
https://github.com/multitheftauto/mtasa-blue/pull/183

This issue should be solved.

Issue History

Date Modified Username Field Change