[HELP] save file txt
#1

How am I doing this?

register user:
playername: Jhon_mark assign ID_Number:1
playername: Kevin_Deen assign ID_Number:2

create file Data.txt with text (Number, Mission, Level, License)
text file contents:

1,0,0,0
2,0,0,0

code pawn:
Code:
new Number
new Mission
new Level
new License
new pickupR1;

public OnFilterScriptInit()
{
  pickupR1 = CreatePickup(1239, 19, 1626.8276,-2326.3374,13.5469);
  return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
  if( pickupid == pickupR1 )
  {
  	GameTextForPlayer(playerid, "~w~Mission Complete",2000,1);
    Mission = 1;
    Level = 1;
    License = 1;
	return 1;
  }
  return 0;
}

if (ID_Number == Number)
{
 save text (Number, Mission, Level, License) in Data.txt
}
text file Data.txt contents:

1,1,1,1
2,0,0,0

the Dini and other text save SYSTEMS not serve me so I hope someone can help me has to do it this way thanks, excuse me bad english
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)