Why YSI\y_ini wont create a player file in scriptfiles?
#1

i try to solve this problem with 3 hours but i cant solve it.
got someone know how to fix it
pls teach me.
PHP код:
#include <a_samp>
#include <YSI\y_ini>
new c4[MAX_PLAYERS];
stock user_ini_file(playerid)
{
    new 
string128 ],user_nameMAX_PLAYER_NAME ];
    
GetPlayerNameplayeriduser_nameMAX_PLAYER_NAME );
    
formatstringsizeof ( string ), "/C4/%s.ini"user_name );
    return 
string;
}
forward @load_user_c4playeridname[], value[] );
@
load_user_c4playeridname[], value[] )
{
    
INI_Int"c4"c4playerid ] );
    return ( 
);
}
public 
OnPlayerConnectplayerid )
{
 new 
INI:File INI_Openuser_ini_fileplayerid ) );
     
INI_WriteIntFile"c4"c4[playerid] );
    
INI_ParseFileuser_ini_fileplayerid ), "load_user_%s", .bExtra true, .extra playerid );
    return ( 
);
}
public 
OnPlayerDisconnectplayeridreason )
{
    new 
INI:File INI_Openuser_ini_fileplayerid ) );
    
INI_WriteIntFile"c4"c4[playerid] );
    
INI_CloseFile );
    return ( 
);

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)