error 025: function heading differs from prototype
#1

pawn Код:
public LoadVehdata(playerid, tag[], name[], value[]) // the error is in this line
{
    new i, vstring[128];
    INI_Int("vehnumber", PlayerData[playerid][pVehnumber]);
    if (PlayerData[playerid][pVehnumber]>0)
    {
        for (i=1; i<=PlayerData[playerid][pVehnumber]; i++)
        {
            format(vstring, sizeof(vstring), "vehicle%i", i);
            INI_String(vstring, pVehmodel[playerid][i], 128);
        }
    }
    return 1;
}
Код:
error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

pawn Код:
forward LoadVehdata(playerid, tag[], name[], value[]);
public LoadVehdata(playerid, tag[], name[], value[])
Reply
#3

That's not the problem, since I have already done that
Edit : Thanks +rep, I've done that but the function name in "forward" wasn't exactly the same as in "public", I should have "Copy/Paste"ed that , Sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)