SA-MP Forums Archive
Pawno-Compiler crashes - 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: Pawno-Compiler crashes (/showthread.php?tid=68182)



Pawno-Compiler crashes - virtualmarc - 07.03.2009

When I want to compile my script the Pawno-Compiler crashes (only at this Script)
Here the script (© by tAxI - currently in change by me)
http://files.virtualmarctek.de/downl...=250tAxIFR.pwn


Re: Pawno-Compiler crashes - ICECOLDKILLAK8 - 07.03.2009

It means a problem in the script, Useually multiple problems


Re: Pawno-Compiler crashes - virtualmarc - 07.03.2009

yes but i don't know where, so i can't fix it by myself


Re: Pawno-Compiler crashes - ICECOLDKILLAK8 - 07.03.2009

Quote:
Originally Posted by virtualmarc
yes but i don't know where, so i can't fix it by myself
Unless you know every change you have made since it last compiled okay then you have no chance of fixing it


Re: Pawno-Compiler crashes - virtualmarc - 07.03.2009

i tried to make everything back since the last compile, but it doesnt made any change (but i remember now that i habe an backup on my dedicated-server)
Edit: Backup worked now I get 3 errors:
pawn Код:
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2618) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2624) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2630) : error 025: function heading differs from prototype



Re: Pawno-Compiler crashes - ICECOLDKILLAK8 - 07.03.2009

Quote:
Originally Posted by virtualmarc
i tried to make everything back since the last compile, but it doesnt made any change (but i remember now that i habe an backup on my dedicated-server)
Edit: Backup worked now I get 3 errors:
pawn Код:
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2618) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2624) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2630) : error 025: function heading differs from prototype
I think its because OnVehicleRespray, OnVehiclePaintJob and OnVehicleMod have changed because they include the player id


Re: Pawno-Compiler crashes - virtualmarc - 07.03.2009

Quote:
Originally Posted by JeNkStAX
Quote:
Originally Posted by virtualmarc
i tried to make everything back since the last compile, but it doesnt made any change (but i remember now that i habe an backup on my dedicated-server)
Edit: Backup worked now I get 3 errors:
pawn Код:
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2618) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2624) : error 025: function heading differs from prototype
C:\Dokumente und Einstellungen\Marc\Desktop\tAxIFR[GM]\tAxIFR[GM]\gamemodes\source\tAxIFR.pwn(2630) : error 025: function heading differs from prototype
I think its because OnVehicleRespray, OnVehiclePaintJob and OnVehicleMod have changed because they include the player id
i have no playerid inside:
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;
}



Re: Pawno-Compiler crashes - ICECOLDKILLAK8 - 07.03.2009

All you need to do is add playerid before, here ill do it for you
pawn Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
  SaveComponent(vehicleid,componentid);
  return 1;
}

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

public OnVehicleRespray(playerid,vehicleid,color1,color2)
{
 SaveColors(vehicleid,color1,color2);
  return 1;
}



Re: Pawno-Compiler crashes - virtualmarc - 07.03.2009

Quote:
Originally Posted by JeNkStAX
All you need to do is add playerid before, here ill do it for you
pawn Код:
public OnVehicleMod(playerid,vehicleid,componentid)
{
SaveComponent(vehicleid,componentid);
return 1;
}

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

public OnVehicleRespray(playerid,vehicleid,color1,color2)
{
 SaveColors(vehicleid,color1,color2);
  return 1;
}
oh i understand wrong thanks now i can compile and only have to fix the problem with the whirlpool hash