Array to Fixed

Posted By: oldschoolj

Array to Fixed - 09/17/07 07:23

Does anyone know what the error "Cannot convert 'ARRAY' to 'FIXED'" means, or what I should look for?

Thanks for the help!

Jesse

Code:
function init_items()
{
// Wait for the ILF file to be loaded
while(!items_file_read) wait(1);
// Give start items
ui_inv_add(itemFromName("Rusty Edge"));
ui_inv_add(itemFromName("Wooden Shield"));
ui_inv_add(itemFromName("Left Leather Boot"));
ui_inv_add(itemFromName("Right Leather Boot"));
ui_inv_add(itemFromName("Leather Chest"));
ui_inv_add(itemFromName("Left Leather Shoulder"));
ui_inv_add(itemFromName("Right Leather Shoulder"));
ui_inv_add(itemFromName("Leather Gauntlets"));
ui_inv_add(itemFromName("Leather Straps"));
ui_inv_add(itemFromName("Leather Belt"));
ui_inv_add(itemFromName("Leather Helm"));
}


Posted By: Tobias

Re: Array to Fixed - 09/17/07 09:17

You should look for a wrong definition of parameters of your "itemFromName" function, for instance you can not pass a char array when the function expects a var.
© 2023 lite-C Forums