Well you should be getting IVEngineClient instead of IVEngineServer, it has the method you are looking for.
On Wed, Dec 9, 2009 at 2:10 AM, JoeX <[email protected]> wrote: > hello everyone! > > this is my first post, so let me introduce myself. My name is Joe, and i'm > from Chile (latin america), as you can see, inglish is not my native > language, but i'll do my best :D, thank you all in advance for your > attention. > > ok, here's where i'm stuck > > i'm trying to make a clien-side plugin for TF2.... compiling a dll and > writing a .vdf and put them in /addons folder... > my plugin it will make easier the tak of recording demos, by console > commands. > > this is what i got: > > CON_COMMAND(hlds_grabar, "comienza a grabar una demo") > { > engine->ServerCommand("record temp"); > } > > but this command is not working > console says: > Error, bad server command record temp > > i think this happens cause i'm trying to execute a client command using the > ServerCommand method... and "record" is not a server command.... > > ok.... i google it for days a solution and then, i could make this: > > CON_COMMAND(hlds_grabar, "comienza a grabar una demo") > { > int cliente = g_EmtpyServerPlugin.GetCommandIndex() + 1; > helpers->ClientCommand(engine->PEntityOfEntIndex(cliente),"record > temp"); > } > > but this is not working too...... > console says: > !!! > CServerPlugin::ClientCommand: Some entity tried to stuff 'record temp' to > console buffer of entity 0 when maxclients was set to 24, ignoring > > > maybe because i still don't understand how pEntity works..... (can you tell > me how?) > > > maybe this is a very noob question, but, how can i get this work? > it has really hard to me, cause there's not much updated documentation. > > thank you in advance for you attention!, Bye! > > -Joe > > PD: if u want to see the whole code, here is: > http://joecabezas.pastebin.com/f7ef2afae > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

