Jump to content

Problem with "triggerServerEvent"


xF_Micka

Recommended Posts

Hello.

I have a problem on my server, without aftermath but an error always appears in my server logs.

When a player joins, he gets this error on chat : say: Invalid text length

In server logs :

  Quote
[2014-01-28 17:53:47] ERROR: Client triggered serverside event onRequestMapName, but event is not added serverside

In my race gamemode :

addEventHandler("onClientResourceStart", g_ResRoot,  
    function() 
        yo = dxGetFontHeight(c_FontScale, c_Font) 
        triggerServerEvent("onRequestMapName", g_ResRoot) 
    end 
) 

So what's problem with this function "triggerServerEvent" and "OnRequestMapName" ?

Thanks.

Edited by Guest
Link to comment

Sorry but I'm not very experimented in script.

So I try to learn too.

What is the "server side" ?

The part of the code is from a file "info_map" who display elementary informations about the map (name, author, moden, etc.) when she is launched

Here are the full script :

  Reveal hidden contents
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...