Help Please.
#1

1.Problem:
pawn Код:
G:\Server With Own Scripts\filterscripts\drift3.pwn(180) : error 017: undefined symbol "drift1"
G:\Server With Own Scripts\filterscripts\drift3.pwn(185) : error 017: undefined symbol "drift1"
G:\Server With Own Scripts\filterscripts\drift3.pwn(190) : error 017: undefined symbol "drift2"
G:\Server With Own Scripts\filterscripts\drift3.pwn(195) : error 017: undefined symbol "drift2"
2.Problem:
pawn Код:
G:\Proiecte\tokyodrift_ro_1.2.pwn(2819) : error 025: function heading differs from prototype
G:\Proiecte\tokyodrift_ro_1.2.pwn(2825) : error 025: function heading differs from prototype
G:\Proiecte\tokyodrift_ro_1.2.pwn(2831) : error 025: function heading differs from prototype
These are the lines:
pawn Код:
public OnVehicleMod(vehicleid,componentid)
{
    SaveComponent(vehicleid,componentid);
    return 1;
}

public OnVehiclePaintjob(vehicleid,paintjobid)
{
  SavePaintjob(vehicleid,paintjobid);
  return 1;
}

public OnVehicleRespray(vehicleid,color1,color2)
{
  SaveColors(vehicleid,color1,color2);
  return 1;
}
What should i do?
Reply
#2

These are callbacks from an include, my guess is you haven't properly "installed" the include. (I assume this as they're not standard callbacks!)

Another factor leading me to this conclusion as that none of the "undefined variables" are present in the lines you gave, which leads me to believe they may be part of said include.
Reply
#3

Ok im going to be nice and try to help

1). check if the include ( don't look like thier sa-mp funcs ) is in the pawno/includes folder.

2). Check if the function name is correct.

3). check ur script i guess..

4). maybe some brains in PAWNO Coding

5). check HERE

6). Or... use THIS

Hope it helped
Reply
#4

Quote:
Originally Posted by Cr@zY!_J?E
Ok im going to be nice and try to help

1). check if the include ( don't look like thier sa-mp funcs ) is in the pawno/includes folder.

2). Check if the function name is correct.

3). check ur script i guess..

4). maybe some brains in PAWNO Coding

5). check HERE

6). Or... use THIS

Hope it helped
Get a life Joe!
just kiding
Reply
#5

Quote:
Originally Posted by Pedro Guedes
Quote:
Originally Posted by Cr@zY!_J?E
Ok im going to be nice and try to help

1). check if the include ( don't look like thier sa-mp funcs ) is in the pawno/includes folder.

2). Check if the function name is correct.

3). check ur script i guess..

4). maybe some brains in PAWNO Coding

5). check HERE

6). Or... use THIS

Hope it helped
Get a life Joe!
just kiding
Searching is a coders best friend.. im trying to say dont start topics before u search/learn PAWN
Reply
#6

these are standart forwards, should be in a_samp.inc

Quote:
Originally Posted by a_samp.inc
forward OnVehicleMod(playerid, vehicleid, componentid);
forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
forward OnVehicleRespray(playerid, vehicleid, color1, color2);
and how the three errors say, the heading is different from the protoype (forward)

pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
    SaveComponent(vehicleid, componentid);
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    SavePaintjob(vehicleid, paintjobid);
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    SaveColors(vehicleid, color1, color2);
}
Reply
#7

Quote:
Originally Posted by ♣ ⓐⓢⓢ
these are standart forwards, should be in a_samp.inc

Quote:
Originally Posted by a_samp.inc
forward OnVehicleMod(playerid, vehicleid, componentid);
forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
forward OnVehicleRespray(playerid, vehicleid, color1, color2);
and how the three errors say, the heading is different from the protoype (forward)

pawn Код:
public OnVehicleMod(playerid, vehicleid, componentid)
{
    SaveComponent(vehicleid, componentid);
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    SavePaintjob(vehicleid, paintjobid);
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    SaveColors(vehicleid, color1, color2);
}
Yes they are, make sure u have #include <a_samp> otherwise, i don't know.. they are correct, also, please post the EXACT lines of errors, it might be the SaveComponent.

EDIT: it's working on mine .. (without the SaveCompnent stuff, are they the lines that are errors?)
Reply
#8

Quote:
Originally Posted by -{NoX}-
Yes they are, make sure u have #include <a_samp> otherwise, i don't know.. they are correct, also, please post the EXACT lines of errors, it might be the SaveComponent.

EDIT: it's working on mine .. (without the SaveCompnent stuff, are they the lines that are errors?)
Sure that the code I posted works, he used the publics from an ealier version, look at the first post and they gave the error that they were different from prototype, I posted the right one...

To your first problem, post the lines, or just do new drift1, drift2;
Reply
#9

i have the includes.If a good scripter can help me i will show the script.
Reply
#10

Quote:
Originally Posted by Doctor_H3ll
i have the includes.If a good scripter can help me i will show the script.
Do what he said, new drift1; new drift2;
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)