View Issue Details

IDProjectCategoryView StatusLast Update
0007064Multi Theft Auto : San AndreasServerpublic2012-09-03 22:40
ReporterFrankZZAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Platformx64OSWindows 7OS Version7.1.7601SP1
Product Version 
Target Version1.3.1Fixed in Version1.3.1 
Summary0007064: setPlayerNametagColor(player, false) (reset overridecolor) does not work, bad argument
Description

When calling setPlayerNametagColor(getPlayerFromName("FrankZZ"), false) lua says "Bad argument @ setPlayerNametagColor()".

This is (probably) the exact line and file of the bug:
http://code.google.com/searchframe#KdIewVX4zdg/trunk/MTA10_Server/mods/deathmatch/logic/lua/CLuaFunctionDefinitions.cpp&l=3386

Steps To Reproduce

I'll describe it by code:

local player = getPlayerFromName("FrankZZ")
local team = createTeam("test", 255, 0, 0) --RED

setPlayerTeam(player, team) --player is RED now

setPlayerNametagColor(player, 0, 0, 255) --Player is BLUE now

setPlayerNametagColor(player, false) -- reset the color to team color (= RED)
^ The last line of code produces the error.

TagsNo tags attached.

Activities

FrankZZ

2012-05-12 11:13

viewer   ~~0016638

Created a patch for this: http://bugs.mtasa.com/view.php?id=7069

x86

2012-06-01 13:47

administrator   ~~0016739

Applied patch: http://code.google.com/p/mtasa-blue/source/detail?r=4194

Issue History

Date Modified Username Field Change