How to save and load from file
#6

Quote:
Originally Posted by CAR
Thanks for how to know to search

I now have this:
pawn Код:
new StringInF[256], carid, Float:CX, Float:CY, Float:CZ, Float:CA;
carid = GetVehicleModel(GetVehicleID(playerid));
GetPlayerPos(playerid, Float:CX, Float:CY, Float:CZ);
GetPlayerFacingAngle(playerid, Float:CA);
format(StringInF, sizeof(StringInF), "AddStaticVehicle(%d, %f, %f, %f, %f, 0, 0);", carid, Float:CX, Float:CY, Float:CZ, Float:CA);
But now my questions;
how to save in a file (no names; like dini)
how to load all lines in the file in: public OnGameModeInit()
ever tried wiki?
https://sampwiki.blast.hk/wiki/File_Functions
Reply


Messages In This Thread
How to save and load from file - by CAR - 21.10.2009, 10:19
Re: How to save and load from file - by pagie1111 - 21.10.2009, 10:24
Re: How to save and load from file - by CAR - 21.10.2009, 10:28
Re: How to save and load from file - by saiberfun - 21.10.2009, 11:23
Re: How to save and load from file - by CAR - 21.10.2009, 12:42
Re: How to save and load from file - by saiberfun - 21.10.2009, 12:45
Re: How to save and load from file - by CAR - 21.10.2009, 12:58
Re: How to save and load from file - by CAR - 21.10.2009, 13:16
Re: How to save and load from file - by CAR - 21.10.2009, 13:29
Re: How to save and load from file - by dice7 - 21.10.2009, 13:35

Forum Jump:


Users browsing this thread: 5 Guest(s)