Help with playerid
#1

Please help me!

Error
Код:
warning 203: symbol is never used: "playerid"
Line
Код:
stock SAUGOMNUOSAVAMASINA(playerid, vehicleid )
+rep who will help me.
Reply
#2

It simply means 'playerid' is never used. Show the entire function.
Reply
#3

Obviously the worst solution is #pragma, but if it isn't used, why not remove it from the stock/function parameters itself? So, please share the code.
Reply
#4

Код:
stock SAUGOMNUOSAVAMASINA(playerid, vehicleid )
{
	new file[ 40 ];
	format(file,sizeof(file),"saves/vehicle/%d",vehicleid);
	if(!fexist(file)) return;

	new Float:vposX,Float:vposY,Float:vposZ,Float:vposA;
	GetVehiclePos( vehicleid, vposX,vposY,vposZ );
	GetVehicleZAngle( vehicleid, vposA );
	dini_IntSet(file,"Modelis",GetVehicleModel( vehicleid ) );
	dini_FloatSet(file,"VPosx",vposX);
	dini_FloatSet(file,"VPosy",vposY);
	dini_FloatSet(file,"VPosz",vposZ);
	dini_FloatSet(file,"VPosa",vposA);
	dini_IntSet(file,"Kuras",vehicleDB[vehicleid][gas]);
	dini_FloatSet(file,"Rida",vehicleDB[vehicleid][prav]);
	dini_IntSet(file,"Mod1",GetVehicleComponentInSlot(vehicleid,0));
	dini_IntSet(file,"Mod2",GetVehicleComponentInSlot(vehicleid,1));
	dini_IntSet(file,"Mod3",GetVehicleComponentInSlot(vehicleid,2));
	dini_IntSet(file,"Mod4",GetVehicleComponentInSlot(vehicleid,3));
	dini_IntSet(file,"Mod5",GetVehicleComponentInSlot(vehicleid,4));
	dini_IntSet(file,"Mod6",GetVehicleComponentInSlot(vehicleid,5));
	dini_IntSet(file,"Mod7",GetVehicleComponentInSlot(vehicleid,6));
	dini_IntSet(file,"Mod8",GetVehicleComponentInSlot(vehicleid,7));
	dini_IntSet(file,"Mod9",GetVehicleComponentInSlot(vehicleid,8));
	dini_IntSet(file,"Mod10",GetVehicleComponentInSlot(vehicleid,9));
	dini_IntSet(file,"Mod11",GetVehicleComponentInSlot(vehicleid,10));
	dini_IntSet(file,"Mod12",GetVehicleComponentInSlot(vehicleid,11));
	dini_IntSet(file,"Mod13",GetVehicleComponentInSlot(vehicleid,12));
	dini_IntSet(file,"Mod14",GetVehicleComponentInSlot(vehicleid,13));
}
Reply
#5

I dont see playerid anywhere there so it must not be needed, try making it

pawn Код:
stock SAUGOMNUOSAVAMASINA(vehicleid )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)