[HELP] save file txt - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] save file txt (
/showthread.php?tid=111734)
[HELP] save file txt -
Eduardo_MK - 03.12.2009
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