Errorr
#1

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*/
Reply
#2

Use [.pawn][/.pawn] wihtout dot(.)
Reply
#3

The error on line 47046
Is like that becouse u have forwarded it differently !
Reply
#4

For 47046:
PHP код:
forward UpdateSpeed (vehid); 
for the warnings, you returned somewhere too early, show us more code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)