SA-MP Forums Archive
[HELP][ENG + FRENCH] Error with basic Script - 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)
+--- Thread: [HELP][ENG + FRENCH] Error with basic Script (/showthread.php?tid=468290)



[HELP][ENG + FRENCH] Error with basic Script - Sneling - 07.10.2013

Hello,
in my pawno, I just sclick on the new script button, changed nothing(for test) and it put me that there were 3 errors + 8 warnings.

PHP код:
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(159) : error 025: function heading differs from prototype
C
:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(164) : error 025: function heading differs from prototype
C
:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(169) : error 025: function heading differs from prototype
C
:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(194) : warning 235: public function lacks forward declaration (symbol "OnRconLoginAttempt")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(199) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(204) : warning 235: public function lacks forward declaration (symbol "OnPlayerStreamIn")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(209) : warning 235: public function lacks forward declaration (symbol "OnPlayerStreamOut")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(214) : warning 235: public function lacks forward declaration (symbol "OnVehicleStreamIn")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(219) : warning 235: public function lacks forward declaration (symbol "OnVehicleStreamOut")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(224) : warning 235: public function lacks forward declaration (symbol "OnDialogResponse")
C:\Users\HENRI\Desktop\test\SAMP\gamemodes\test1.pwn(229) : warning 235: public function lacks forward declaration (symbol "OnPlayerClickPlayer")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors

Lines 159 --> 169:
PHP код:
public OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}
public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}
public 
OnVehicleRespray(playeridvehicleidcolor1color2
thanks if you help me : P


Re: [HELP][ENG + FRENCH] Error with basic Script - [EnErGyS]KING - 08.10.2013

Hello, Sneling.
In my Pawno everything is good ?
Maybe you need to update Includes or Pawno ?


Re: [HELP][ENG + FRENCH] Error with basic Script - Konstantinos - 08.10.2013

Include the main file.
pawn Код:
#include <a_samp>