Quote:
Originally Posted by Virtual1ty
@OP
AmigaBlizzard and Jefff have already pointed you where your problem is.
The evSahipIsim() part is correct, your evSahip() "callback" is not.
PHP код:
forward evSahip(evID);
public evSahip(evID)
{
new
rows,
fields,
sahipIsim[24];
cache_get_data(rows, fields, g_iHandle);
cache_get_field_content(0, "Character", sahipIsim, g_iHandle, sizeof(sahipIsim));
// strpack(HouseData[evID][houseOwner], sahipIsim, 24 char);
// ^ you cannot magically store a string to an integer variable
// do what you need with the house owner
// stored as a string in "sahipIsim" array
return 1;
}
|
Should the row for cache_get_field_content be 0? And can I return the string to get the name in different part of script.