SA-MP Forums Archive
Help with playerid - 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 with playerid (/showthread.php?tid=430213)



Help with playerid - Weed15 - 13.04.2013

Please help me!

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


Re: Help with playerid - MP2 - 13.04.2013

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


Re: Help with playerid - RajatPawar - 13.04.2013

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.


Re: Help with playerid - Weed15 - 13.04.2013

Код:
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));
}



Re: Help with playerid - DobbysGamertag - 13.04.2013

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

pawn Код:
stock SAUGOMNUOSAVAMASINA(vehicleid )