How to save and load a text in dini?
#6

Post the error. It should be:
pawn Код:
enum enum_name
{
    CarOwner[ MAX_PLAYER_NAME ],
    // Rest
}
pawn Код:
// Set Name
new
    Name[ MAX_PLAYER_NAME ], Save_String[ 32 ]; // Or '64' besides on your File Location.

GetPlayerName( playerid, Name, MAX_PLAYER_NAME );
format( Save_String, sizeof( Save_String ), /* Use your path -> */"Load/Vehicles/%s.ini", Name );
// Save
dini_Set( Save_String, "CarOwner", Name );
// Load
dini_Get( Save_String, "CarOwner" );
Reply


Messages In This Thread
How to save and load a text in dini? - by milanosie - 31.01.2012, 13:25
Re: How to save and load a text in dini? - by Tanush123 - 31.01.2012, 13:31
Re: How to save and load a text in dini? - by milanosie - 31.01.2012, 13:33
Re: How to save and load a text in dini? - by Konstantinos - 31.01.2012, 13:48
Re: How to save and load a text in dini? - by milanosie - 31.01.2012, 13:56
Re: How to save and load a text in dini? - by Konstantinos - 31.01.2012, 14:07
Re: How to save and load a text in dini? - by milanosie - 31.01.2012, 14:52
Re: How to save and load a text in dini? - by Konstantinos - 31.01.2012, 14:55

Forum Jump:


Users browsing this thread: 2 Guest(s)