function heading differs from prototype
#1

Hey guys,

I'm trying to create my own house system but it gives me 1 error I dont understand.
code (Note: first line of code is line #326 in my gamemode):
Код:
public LoadHouse_data(houseid,name[],value[])
{
    INI_Float("Enterx",HouseInfo[houseid][hEnterx]);
    INI_Float("Entery",HouseInfo[houseid][hEntery]);
    INI_Float("Enterz",HouseInfo[houseid][hEnterz]);
    INI_Float("Exitx",HouseInfo[houseid][hExitx]);
    INI_Float("Exity",HouseInfo[houseid][hExity]);
    INI_Float("Exitz",HouseInfo[houseid][hExitz]);
    INI_Int("Owned",HouseInfo[houseid][hOwned]);
    INI_Int("Interior",HouseInfo[houseid][hInterior]);
    return 1;
}
Error I get:
Код:
(326)error 025: function heading differs from prototype
If any of you guys help, I'd appreciate it.
Reply
#2

How are you calling this function: LoadHouse_data(houseid,name[],value[])
Reply
#3

Can you show us how do you use the INI_ParseFile?
Reply
#4

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Can you show us how do you use the INI_ParseFile?
Now i realized, I didnt do parse file. When I did try though (I coppied from my register parsefile and changed some info), it started giving me errors. This is my try:
Код:
INI_ParseFile(HousePath(houseid), "LoadHouse_%i", .bExtra = true, .extra = houseid);
Do you know how I should do it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)