View Issue Details

IDProjectCategoryView StatusLast Update
0008766Multi Theft Auto : San AndreasScriptingpublic2015-02-17 03:07
ReporterNecktroxAssigned ToNecktrox 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.5Fixed in Version1.5 
Summary0008766: Player's parent element can't be resetted ? ?
Description

It's possible to change the parent of the player element to a custom element, but it can't be resetted (to root element).

[SKC]Necktrox executed command: player = getPlayerFromName("[SKC]Necktrox"); player.parent = createElement("mta"); outputConsole(player.parent.type)
mta
Command executed!

[SKC]Necktrox executed command: player=getPlayerFromName("[SKC]Necktrox"); player.parent = root; outputConsole(player.parent.type)
mta
Command executed!

Steps To Reproduce

srun me = getPlayerFromName("YourNickname"); element = createElement("test")
srun setElementParent(me, element) outputConsole(getElementType(getElementParent(me)))
srun setElementParent(me, root) outputConsole(getElementType(getElementParent(me)))

TagsNo tags attached.

Activities

Necktrox

2015-02-16 03:24

developer   ~~0023008

Fixed.CStaticFunctionDefinitions.cpp.patch
is now the working patch I made for this specific case.

ccw

2015-02-17 03:07

administrator   ~~0023016

Fixed in https://code.google.com/p/mtasa-blue/source/detail?r=7084

Issue History

Date Modified Username Field Change