![]() |
speech - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: General Help (/Forum-General-Help) +--- Thread: speech (/Thread-speech) Pages: 1 2 |
speech - Art - 08-20-2012 07:21 AM Code: [spk_player] If somebody will use symbols like /, server will give message about error 'Exp_GetVal: Divide by 0', or = + -, server will give messages like 'Undefined symbol'. How i can solve problem? RE: speech - Extreme - 08-20-2012 07:48 AM on=* try this RE: speech - Art - 08-20-2012 08:55 PM Same thing =\ RE: speech - Shaklaban - 08-20-2012 08:57 PM its bug of a sphere, its tries to evaluate everything. you can block this characters in speech. im also have that problem. sometimes i want to use db.escapedata function on speech, but strings are evalauted even with insde " ". RE: speech - Skul - 08-20-2012 11:33 PM Ah ya, mathematical algorithms do that everytime you compare one using a statement. (IF/ELSEIF/WHILE/FOR/etc). You can work around it by converting the characters to <ASC> and storing into a LOCAL, compare the LOCAL in your statements and return <ARGS> as you need to (after all comparisons are complete). RE: speech - Art - 08-20-2012 11:38 PM May i ask for example please? I tried local.str = <args> it contain error too. I need record speech string to 'tag' on character. RE: speech - Skul - 08-20-2012 11:51 PM sure Code: [FUNCTION char_parse] Code: [speech spk_player] Code: local.args=<char_parse <args>> RE: speech - Art - 08-21-2012 12:56 AM Woah, much code for small problem =\ RE: speech - Extreme - 08-21-2012 01:14 AM I still do not understand your problem... RE: speech - Shaklaban - 08-21-2012 01:33 AM [spk_player] ON=** tag.key = <args> just put that on speech than in game write something like: 0/0 etc. you will see his problem on console ![]() |