{"action":"created","issue":{"url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/55","labels_url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/55/comments","events_url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/55/events","html_url":"https://github.com/Misiur/YSI-Includes/issues/55","id":109394321,"number":55,"title":"y_text problem","user":{"login":"Jonathan-Rosewood","id":2553512,"avatar_url":"https://avatars.githubusercontent.com/u/2553512?v=3","gravatar_id":"","url":"https://api.github.com/users/Jonathan-Rosewood","html_url":"https://github.com/Jonathan-Rosewood","followers_url":"https://api.github.com/users/Jonathan-Rosewood/followers","following_url":"https://api.github.com/users/Jonathan-Rosewood/following{/other_user}","gists_url":"https://api.github.com/users/Jonathan-Rosewood/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonathan-Rosewood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonathan-Rosewood/subscriptions","organizations_url":"https://api.github.com/users/Jonathan-Rosewood/orgs","repos_url":"https://api.github.com/users/Jonathan-Rosewood/repos","events_url":"https://api.github.com/users/Jonathan-Rosewood/events{/privacy}","received_events_url":"https://api.github.com/users/Jonathan-Rosewood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-01T22:04:03Z","updated_at":"2015-10-05T00:52:44Z","closed_at":null,"body":"I use a function Text_ListBox with mixed parameters (string & y_text variable), but the output is \"Could not find text source\" instead of the contents of a variable of type string.\r\nWhat could be the problem? In older versions of the YSI (which does not specifically version say) all works perfect.\r\n\r\nPawn source code\r\n```cpp\r\nYCMD:inventory(playerid, params[], help) {\r\n\tif(help) return Text_Send(playerid, $COMMAND_HELP, YCMD:inventory, \"view and manage inventory\");\r\n\r\n\t// Preparing dialog content\r\n\tnew string[2000];\r\n\tfor(new slot = 0; slot < INV_MAX_ITEMS; slot++) {\r\n\t\tnew item, quantity, serial;\r\n\t\tInventory_GetSlotData(playerid, slot, item, quantity, serial);\r\n\r\n\t\tif(!item)\r\n\t\t\tcontinue;\r\n\r\n\t\tif(serial)\r\n\t\t\tformat(string, sizeof(string), \"%s%24s\\t[{00AA00}%3d{FFFFFF} шт., {00AA00}%.3f{FFFFFF} кг., #%5d]\\n\", \r\n\t\t\t\tstring, Items[item][itemName], quantity, Inventory_GetSlotWeight(playerid, slot), serial);\r\n\t\telse\r\n\t\t\tformat(string, sizeof(string), \"%s%24s\\t[{00AA00}%3d{FFFFFF} шт., {00AA00}%.3f{FFFFFF} кг.]\\n\", \r\n\t\t\t\tstring, Items[item][itemName], quantity, Inventory_GetSlotWeight(playerid, slot));\r\n\t}\r\n\tif(strlen(string) < 30) \r\n\t\treturn Text_Send(playerid, $INVENTORY_IS_EMPTY);\r\n\tstrmid(string, string, 0, strlen(string)-1);\r\n\r\n\t// Show and handle dialog\r\n\tinline Response(pid, dialogid, response, listitem, string:inputtext[]) {\r\n\t\t#pragma unused pid, dialogid, listitem, inputtext\r\n\t\tif(!response)\r\n\t\t\treturn true;\r\n\t\t// @todo\r\n\t}\r\n\tText_ListBox(playerid, using inline Response, \"Inventory\", string, $DIALOG_SELECT, $DIALOG_CLOSE);\r\n\r\n\treturn true;\r\n}\r\n```\r\nThanks in advance :)"},"comment":{"url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/comments/145406262","html_url":"https://github.com/Misiur/YSI-Includes/issues/55#issuecomment-145406262","issue_url":"https://api.github.com/repos/Misiur/YSI-Includes/issues/55","id":145406262,"user":{"login":"Crayder","id":9919010,"avatar_url":"https://avatars.githubusercontent.com/u/9919010?v=3","gravatar_id":"","url":"https://api.github.com/users/Crayder","html_url":"https://github.com/Crayder","followers_url":"https://api.github.com/users/Crayder/followers","following_url":"https://api.github.com/users/Crayder/following{/other_user}","gists_url":"https://api.github.com/users/Crayder/gists{/gist_id}","starred_url":"https://api.github.com/users/Crayder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crayder/subscriptions","organizations_url":"https://api.github.com/users/Crayder/orgs","repos_url":"https://api.github.com/users/Crayder/repos","events_url":"https://api.github.com/users/Crayder/events{/privacy}","received_events_url":"https://api.github.com/users/Crayder/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T00:52:44Z","updated_at":"2015-10-05T00:52:44Z","body":"'!' is not meant to be like '\\n', it represents an array. Not sure what you meant by that."}}