27.06.2011, 21:15
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).
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).