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



Scripting Help - xVIP3Rx - 23.08.2013

Hello, I need to learn how to save and load stuff, For example :
I have a radio system, But i want to save the radio name/radio url and call it when the player enter the vehicle(If He did /radio before) and stop/save it again when he leave the vehicle
Shall i use enum to save name/url or what, I made a script but i can't make it work because i don't know what to use exactly.
Thanks in advance


Re: Help - xVIP3Rx - 24.08.2013

Also, What's the right way to do This
Код:
#pragma tabsize 0

UsingAttachment(playerid,index [],modelid[],bone[],fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ,fScaleX,fScaleY,fScaleZ,materialcolor1,materialcolor2)
{
	SetPlayerAttachedObject(playerid, index, modelid, bone, fOffsetX = 0.0, fOffsetY = 0.0, fOffsetZ = 0.0, fRotX = 0.0, fRotY = 0.0, fRotZ = 0.0, fScaleX = 1.0, fScaleY = 1.0, fScaleZ = 1.0, materialcolor1 = 0, materialcolor2 = 0);
	gPlayerUsingAttachment[playerid] = 1;
}



Re: Help - xVIP3Rx - 25.08.2013

Up :\