SA-MP Forums Archive
Job help. Save on file ? - 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: Job help. Save on file ? (/showthread.php?tid=327189)



Job help. Save on file ? - Mikeydoo - 20.03.2012

I need to save the player Name and the playercurrent job on a file called 'jobis' in scriptfiles. I was wondering what commands i should use and if you can, include some code it would REALLY HELP ME ! thanks a lot !

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/weapon smuggler", cmdtext, true, 10) == 0)
	{
		if (IsPlayerInRangeOfPoint(playerid, 5.0, 1423.72, -1306.71, 13.55));
		{
			SendClientMessage(playerid,0xFFFFFFFF,"You are now a weapon smuggler ! Beware of the cops, they can arrest you if they see you using 'materials' !");
			
		}
		return 1;
	}
	return 0;
}
So ! Again , thank you
Noob Pawner


Re: Job help. Save on file ? - Spooky - 20.03.2012

You have to use a File saving system for that.
use any INI WRITER for that.


Re: Job help. Save on file ? - Mikeydoo - 20.03.2012

Could you direct me a bit more? :O As i said, im a noob scripter I did my own GM tho but it took me a year for 4.5k lines.. I just can't save player datas on a file im so confused so if there is any kind of tutorial or if you could post a simple code to help me save those. Thanks.