wow!, it woks!.... and..... i never have seen that Q_strncat method..... of function (:
hot you edit that code to replace whitespaces with underscores? :D hey mister Saul, what is about your proyect?, can i see it working? :D 2009/12/9 Saul Rennison <[email protected]> > http://cpp.pastebin.com/f2a5306a8 > > Thanks, > - Saul. > > > 2009/12/9 JoeX <[email protected]> > > > thank you David Kraeutmann and keeper! > > > > from you keeper, i read a lot before, just googling..... in this 3 days > of > > workshop, u'r anwers helped me a lot, thank you > > > > i'll try to implement the callback, and wait the implementation of Mr. > Saul > > :D > > > > 2009/12/9 Keeper <[email protected]> > > > > > Look at the definition of ConVar ... one of them includes a function > call > > > back: > > > > > > void testentry ( IConVar *pVar, char const *pOldString, float > pOldFloat) > > { > > > // do your entry examination here.... > > > } > > > > > > static ConVar empty_cvar("plugin_empty", "0", 0, "Example plugin cvar", > > > (FnChangeCallback_t)testentry); > > > > > > Keeper > > > > > > -----Original Message----- > > > From: JoeX [mailto:[email protected]] > > > Sent: Wednesday, December 09, 2009 2:06 PM > > > To: Discussion of Half-Life Programming > > > Subject: [hlcoders] how to use cvars? (removing whitespaces) > > > > > > first.... i want to thank AzuiSleet, Saul Rennison and Jacob Heidt for > > > their > > > support in the last topic about "tf2 client plugin question", your help > > is > > > much appreciated. Thank you again > > > > > > in documentation, i can't find how to run code, when the user change > the > > > value of a cvar... > > > > > > i got this.... > > > > > > static ConVar empty_cvar("plugin_empty", "0", 0, "Example plugin > cvar"); > > > > > > i want to remove whitespaces from user...., that means: > > > > > > (console) > > > ]plugin_empty hola amigos > > > ]plugin_empty > > > plugin_empty = "holaamigos" (def = "0") > > > Example plugin cvar > > > > > > but..... how to make my own code, to "intercept" plugin_empty > > mdifications? > > > like CON_COMMAND, with a code block... > > > > > > cheers from Chile! (LA) > > > _______________________________________________ > > > 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 > > > > > > > > _______________________________________________ > > 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 > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

