function heading differs from prototype - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: function heading differs from prototype (
/showthread.php?tid=402167)
function heading differs from prototype -
PDChaseOfficial - 25.12.2012
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.
Re: function heading differs from prototype -
Peach - 25.12.2012
How are you calling this function: LoadHouse_data(houseid,name[],value[])
Re: function heading differs from prototype -
Konstantinos - 25.12.2012
Can you show us how do you use the
INI_ParseFile?
Re: function heading differs from prototype -
PDChaseOfficial - 25.12.2012
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?