SA-MP Forums Archive
HellCity Compile and 3 Errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HellCity Compile and 3 Errors (/showthread.php?tid=64842)



HellCity Compile and 3 Errors - puchini - 07.02.2009

Hi, I have found the Hellcity Gamemmode on my Pc once more and wanted sometimes compail, however, I agree error indicated

Quote:

C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3907) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3940) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3952) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

does have vll somebody idea what this could be? already thank you

greetz by PuChINi


Re: HellCity Compile and 3 Errors - micki501 - 07.02.2009

If your using a forward function for example:

Touch(id1, id2)

and in your script you write:

Touch(pToucher, pTouched)

that will cause that error.


Re: HellCity Compile and 3 Errors - ICECOLDKILLAK8 - 07.02.2009

If you have
pawn Код:
forward MyFunction(my, function);
and your function is
pawn Код:
public MyFuction(function, my);
{
return 1;
}
Then you will recieve that error
EDIT: Ooops, Just seen the response from micki501


Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

do not understand I completely xD somebody can give me his hellcity? if he still lets himself compilen


Re: HellCity Compile and 3 Errors - ICECOLDKILLAK8 - 07.02.2009

Just post them lines


Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

3907: public OnVehicleMod(vehicleid,componentid)
3940: public OnVehiclePaintjob(vehicleid, paintjobid)
3952: public OnVehicleRespray(vehicleid, color1, color2)


Re: HellCity Compile and 3 Errors - SilentMouse - 07.02.2009

forward OnVehicleMod(playerid, vehicleid, componentid);
forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
forward OnVehicleRespray(playerid, vehicleid, color1, color2);

New since 0.2x




Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

Quote:
Originally Posted by SnowFlake
forward OnVehicleMod(playerid, vehicleid, componentid);
forward OnVehiclePaintjob(playerid, vehicleid, paintjobid);
forward OnVehicleRespray(playerid, vehicleid, color1, color2);
should I add to the Forwards?


Re: HellCity Compile and 3 Errors - SilentMouse - 07.02.2009

No, change.

public OnVehicleMod(vehicleid,componentid)
public OnVehiclePaintjob(vehicleid, paintjobid)
public OnVehicleRespray(vehicleid, color1, color2)

to

public OnVehicleMod(playerid,vehicleid,componentid)
public OnVehiclePaintjob(playerid,vehicleid, paintjobid)
public OnVehicleRespray(playerid,vehicleid, color1, color2)


Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

no! but if I it rei copy come same errors


Re: HellCity Compile and 3 Errors - SilentMouse - 07.02.2009

Quote:
Originally Posted by puchini
no! but if I it rei copy come same errors
Updated above ^


Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

now, however, the Errors are away 3 are there warnings

Quote:

C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3911) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3944) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3956) : warning 219: local variable "playerid" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 7768 bytes
Code size: 1277872 bytes
Data size: 2399012 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5671 cells (22684 bytes)
Total requirements: 3701036 bytes

3 Warnings.




Re: HellCity Compile and 3 Errors - SilentMouse - 07.02.2009

Quote:
Originally Posted by puchini
now, however, the Errors xD are away 3 warnings-.-

Quote:

C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3911) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3944) : warning 219: local variable "playerid" shadows a variable at a preceding level
C:\Dokumente und Einstellungen\AmoK\Desktop\SaMp Scripts\S\HellCity\HellCity.pwn(3956) : warning 219: local variable "playerid" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 7768 bytes
Code size: 1277872 bytes
Data size: 2399012 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5671 cells (22684 bytes)
Total requirements: 3701036 bytes

3 Warnings.

Can you post the new error lines?


Re: HellCity Compile and 3 Errors - puchini - 07.02.2009

clearly I am able... you help yourselves to me. and not I xDDDD

3911 new playerid=GetPlayerFromCarlistCar(vehicleid);
3944 new playerid=GetPlayerFromCarlistCar(vehicleid);
3956 new playerid=GetPlayerFromCarlistCar(vehicleid);