Errorr - 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: Errorr (
/showthread.php?tid=282096)
Errorr -
gabyk - 09.09.2011
Errors:
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(12 251) : warning 225: unreachable code
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(16 086) : warning 225: unreachable code
F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(47 046) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Lines:
Код:
47046: public UpdateSpeed (vehid)
{
new id = GetVehicleInfrontID (vehid);
if (id < 0)
{
TextDrawSetString (SpeedAndModel [vehid], "~b~N/A ~n~~r~N/A");
}
Код:
//--------------------------------------------------------//sweeper\\-------------------------------------------------------
16086: if(strcmp(cmd, "/start", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pCarLic] == 1)
{
Код:
//34
12251 AddStaticVehicleEx(421,1405.8300,-1786.8331,13.4291,89.1217,1, 1, 60000);/*Mayor 1st*///51
AddStaticVehicleEx(522,2954.429, 2974.064, 15, 0, 0, 0,6000000); // /*Aruncata By MousEY
AddStaticVehicleEx(596,1569.639000,-1710.859000,5.466783,1.0, -1, -1, 60000);/*CopCruiser*/
AddStaticVehicleEx(596,-2139.1995,-2393.7671,30.3452,140.7012, 0, 0, 60000);/*CopCruiser*/
Re: Errorr -
=WoR=Varth - 09.09.2011
Use [.pawn][/.pawn] wihtout dot(.)
Re: Errorr -
park4bmx - 09.09.2011
The error on line 47046
Is like that becouse u have forwarded it differently !
Re: Errorr -
Jafet_Macario - 09.09.2011
For 47046:
PHP код:
forward UpdateSpeed (vehid);
for the warnings, you returned somewhere too early, show us more code.