HellCity Compile and 3 Errors
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#4

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

Just post them lines
Reply
#6

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

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

New since 0.2x

Reply
#8

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?
Reply
#9

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)
Reply
#10

no! but if I it rei copy come same errors
Reply
#11

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

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.

Reply
#13

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?
Reply
#14

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);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)