PHP код:
cache_get_data(rows, fields, g_iHandle);
This returns the amount of rows and fields. If you have 1 row returned, rows will be 1.
PHP код:
cache_get_field_content(rows, "Character", sahipIsim, g_iHandle, sizeof(sahipIsim));
In case of 1 row returned, you use "rows" here to indicate the row to be processed.
But the first row in a result-set is row 0.
You're processing a non-existing row.
PHP код:
cache_get_field_content(rows - 1, "Character", sahipIsim, g_iHandle, sizeof(sahipIsim));
Or better yet, if you're certain you only have 1 character to be returned (always 1 row):
PHP код:
cache_get_field_content(0, "Character", sahipIsim, g_iHandle, sizeof(sahipIsim));