Hi, im trying some examples from wiki.
The code below always throw an error:
function drawLocalName()
{
local position = getPlayerPosition( getLocalPlayer() );
local screen = getScreenFromWorld( position[0], position[1], position[2] );
if(screen[2] >= 0)
{
//dxDrawText( "Hello world!", screen[0], screen[1], 0xFFFFFFFF, true, "tahoma-bold" );
}
}
addEventHandler( "onClientFrameRender", drawLocalName );
[19:59:20] Script Error: AN ERROR HAS OCCURED [wrong number of parameters]
[19:59:20] Script Error: CALLSTACK
[19:59:20] Script Error: LOCALS
Do you have any advice?
The code below always throw an error:
function drawLocalName()
{
local position = getPlayerPosition( getLocalPlayer() );
local screen = getScreenFromWorld( position[0], position[1], position[2] );
if(screen[2] >= 0)
{
//dxDrawText( "Hello world!", screen[0], screen[1], 0xFFFFFFFF, true, "tahoma-bold" );
}
}
addEventHandler( "onClientFrameRender", drawLocalName );
[19:59:20] Script Error: AN ERROR HAS OCCURED [wrong number of parameters]
[19:59:20] Script Error: CALLSTACK
[19:59:20] Script Error: LOCALS
Do you have any advice?