GTAOnline.net

San Andreas Multiplayer (sa:mp) => Scripting SA-MP [Pawn center] => Discussion démarrée par: Sphinxiro le 17 Juillet 2013, 18:08:33

Titre: [RÉSOLUE]Function heading differs from prototype Erreur
Posté par: Sphinxiro le 17 Juillet 2013, 18:08:33
Bonjour/Bonsoir tout le monde.
Pourriez vous m'aidez pour cette erreur s'il vous plaît ?

Citer
function heading differs from prototype

Merci.
Titre: Re : Function heading differs from prototype Erreur
Posté par: Ssk le 17 Juillet 2013, 18:11:08
Quel bout de code ?
Titre: Re : Function heading differs from prototype Erreur
Posté par: Sphinxiro le 17 Juillet 2013, 18:29:15
Code: (pawn) [Sélectionner]
public OnGameModeInit(playerid)
{
//--------------------------Please do not change this--------------------------------
SendRconCommand("hostname \t                     « Mode Libre Français »");
SendRconCommand("gamemodetext Gamemode by Sun");
SendRconCommand("mapname Los Santos");
SendRconCommand("weburl Aucune");
//-----------------------------------------------------------------------------------

    RemoveBuildingForPlayer(playerid, 3672, 1889.6563, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3672, 1822.7344, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3672, 1682.7266, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3672, 1617.2813, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3672, 1754.1719, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3629, 1617.2813, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 1290, 1649.0625, -2641.4063, 18.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3629, 1682.7266, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3629, 1754.1719, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 3629, 1822.7344, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 1290, 1855.7969, -2641.4063, 18.4766, 0.25);
RemoveBuildingForPlayer(playerid, 3629, 1889.6563, -2666.0078, 18.8828, 0.25);
RemoveBuildingForPlayer(playerid, 1290, 1922.2031, -2641.4063, 18.4766, 0.25);

Lui.
Titre: Re : Function heading differs from prototype Erreur
Posté par: Sphinxiro le 17 Juillet 2013, 18:31:38
Erreur entière :
Code: (pawn) [Sélectionner]
C:\Users\Herka\Desktop\SERVER\gamemodes\03x_RC2.pwn(95) : error 025: function heading differs from prototype
C:\Users\Herka\Desktop\SERVER\gamemodes\03x_RC2.pwn(96) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

C'est à cause de playerid de OnGameModeInit !
Titre: Re : Function heading differs from prototype Erreur
Posté par: Ssk le 17 Juillet 2013, 18:42:06
Les doubles posts sont interdits ;)

Et ton erreur vient du fait que tes RemoveBuildingForPlayer sont dans OnGameModeInit, mets les dans OnPlayerConnect.
Titre: Re : Function heading differs from prototype Erreur
Posté par: Sphinxiro le 17 Juillet 2013, 18:55:43
J'y ais pas pensé, désolé pour les double post & merci beaucoup.