Problem with car saving and loading.
#1

Hello people,I need help.I wanna ask you,i have save my car by player name:


new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new files[ 60 ];

format( files, 60, "saves/cars/%s.ini",name);

All saves well,but with loading bad,i don't know how to make when server is on,then load cars(OnGameModeInit).

new files [128];
for(new playerid=0; playerid<MAX_VEHICLES; playerid++)
{
format(files, sizeof(files),"saves/cars/%s.ini",playerid );


I try this and do not work(maybe you can fix that).Maybe it's impossible to load file with player name,then please show me other way.Thanks for answers(and sorry for bad english).
Reply


Messages In This Thread
Problem with car saving and loading. - by budelis - 27.06.2011, 21:15
Re: Problem with car saving and loading. - by budelis - 28.06.2011, 06:35
Re: Problem with car saving and loading. - by [HiC]TheKiller - 28.06.2011, 06:41
Re: Problem with car saving and loading. - by budelis - 28.06.2011, 08:08
Re: Problem with car saving and loading. - by budelis - 28.06.2011, 12:12
Re: Problem with car saving and loading. - by budelis - 28.06.2011, 15:07
Re: Problem with car saving and loading. - by budelis - 28.06.2011, 16:23

Forum Jump:


Users browsing this thread: 3 Guest(s)