GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: JaCky38 le 02 Janvier 2009, 10:28:13

Titre: Probleme avec le GM TaXi World Freeroam
Posté par: JaCky38 le 02 Janvier 2009, 10:28:13
Hoyé Hoyé
J"ai un probleme avec mon  GM Taxi freeroam, Il me donne trois erreur

C:\Documents and Settings\Administrateur\Mes documents\Mes fichiers reçus\tAxIFR.pwn(2653) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrateur\Mes documents\Mes fichiers reçus\tAxIFR.pwn(2659) : error 025: function heading differs from prototype
C:\Documents and Settings\Administrateur\Mes documents\Mes fichiers reçus\tAxIFR.pwn(2665) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.


A ces lignes là :

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;
}
Titre: Re : Probleme avec le GM TaXi World Freeroam
Posté par: Nikko™ le 02 Janvier 2009, 10:30:41
Tu les a défini comment tes public ?

++
nikko
Titre: Re : Probleme avec le GM TaXi World Freeroam
Posté par: MrFredo le 02 Janvier 2009, 10:52:02
C'est normal tu compil avec 0.2X il faut donc mettre a jour les callback que tu cite car depuis la 0.2X c'est callback on un nouveau parametre "playerid" il faut donc les modifier comme ceci


OnVehicleMod(playerid,vehicleid,componentid)

OnVehiclePaintjob(playerid,vehicleid,paintjobid)

OnVehicleRespray(playerid,vehicleid,color1,color2)