Y_Timers - old style prototypes used with optional semicolumns
#1

Код:
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12744) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12744) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12750) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12750) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12779) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12779) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12783) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Hurdock\Desktop\Gamemode\gamemodes\roleplay.pwn(12783) : warning 218: old style prototypes used with optional semicolumns
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          15340 bytes
Code size:          1374224 bytes
Data size:         22103132 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:23509080 bytes

8 Warnings.
One for example


Код:
task ReduceGas[25000]()
{
	for(new i=0;i< MAX_VEHICLES;i++)
	{
		if(Motor[i] == 1)
		{
			if(Gas[i] >= 1)
			{
				if(IsABike(i)) continue;
				if(IsABoat(i)) continue;
				if(IsAPlane(i)) continue;
				if(IsAJobCar(i)) continue;
				if(IsARaceCar(i)) continue;
	            new Float:x,Float:y,Float:z;
				GetVehiclePos(i ,x,y,z);
				if(x != OldVehicleGas[i][0] && y != OldVehicleGas[i][1])
				{
		      		GetVehiclePos(i, OldVehicleGas[i][0], OldVehicleGas[i][1], OldVehicleGas[i][2]);
					Gas[i] --;
				}
				if(Gas[i] < 1)
				{
					Motor[i] = 0;
					SetVehicleParamsVeh(i , 0, lights, alarm, doors, bonnet, boot, objective);
				}
			}
		}
	}
}
How i fix this warning maybe? is the frist time i use y_timers..
Reply
#2

if you have searched a little you were gonna see the below result:

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Код:
<path>\errors.pwn(3) : warning 218: old style prototypes used with optional semicolon
Pawn compiler 3.2.3664          Copyright © 1997-2006, ITB CompuPhase


1 Warning.
  • Solution
This seems to be caused by using Raven's RolePlay, who for some inexplicable reason decided to ignore standard SA:MP formatting and remove semi-colons. To fix this you first need to remove this line:

[pawn]#pragma semicolon 0

Then fix all the other errors that come up because they are missing so many semi-colons. Blame them, not me - this is what happens when you ignore community-wide standards!
https://sampforum.blast.hk/showthread.php?pid=3430701#pid3430701
Reply
#3

Example:
PHP код:
warring:
function(); public function(){}

Fix:
forward function(); public function(){} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)