25.03.2013, 17:31
if(sscanf(params, "z", Location)) change to: if(sscanf(params, "s[128]", Location))
Code:
Function: sscanf Params: string[] - String to extract parameters from. format[] - Parameter types to get. {Float,_}:... - Data return variables. Return: 0 - Successful, not 0 - fail. Notes: A fail is either insufficient variables to store the data or insufficient data for the format string - excess data is disgarded. A string in the middle of the input data is extracted as a single word, a string at the end of the data collects all remaining text. The format codes are: c - A character. d, i - An integer. h, x - A hex number (e.g. a colour). f - A float. s - A string. z - An optional string. pX - An additional delimiter where X is another character. '' - Encloses a litteral string to locate. u - User, takes a name, part of a name or an id and returns the id if they're connected.