04.07.2011, 07:58
Hmm..... ( Honestly I dont know how it works too, hehe, but I got it working in my admin script like this... )
pawn Код:
#define nyancat_directory "nyans%s.INI"
new
nyanCats[ MAX_PLAYERS ]
;
public OnPlayerConnect( playerid )
{
new
ohai[ 64 + 24 ]
;
format( ohai, sizeof ( ohai ), nyancat_directory, name( playerid ) ); // stock name( playerid ) { blablablabla }
INI_ParseFile( ohai, "loadNyanCats", .bExtra = true, .extra = playerid );
new
lol[ 128 ]
;
format( lol, sizeof ( lol ), "Your nyancats are : %i.", nyanCats[ playerid ] );
SendClientMessage( playerid, -1, lol );
return 1;
}
forward loadNyanCats( playerid, name[ ], value[ ] );
public loadNyanCats( playerid, name[ ], value[ ] )
{
INI_Int( "Nyancats", nyanCats[ playerid ] );
return 1;
}