Job help. Save on file ?
#1

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
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)