Need help with Y_ini
#4

Sry for double post but i had notice that i dont get variables wicth are like this:
Код:
INI_Float("pos_X",z);
    INI_Float("pos_Y",y);
    INI_Float("pos_Z",z);
    SetPlayerPos(playerid,x,y,z);
I tried this:
pawn Код:
public load_user_data_basic(playerid, name[], value[])
    {
    new gun[12],ammo[12];
    if ( !strcmp( name, "pos_X" ) ) SetPVarString( playerid, "POSX", value );
    if ( !strcmp( name, "pos_Z" ) ) SetPVarString( playerid, "POSZ", value );
    if ( !strcmp( name, "pos_Y" ) ) SetPVarString( playerid, "POSY", value );
    if ( !strcmp( name, "Interior" ) ) SetPVarString( playerid, "Interid", value );
    if ( !strcmp( name, "XP" ) ) SetPVarString( playerid, "EXP", value );
    INI_Int("Level",PlayerInfo[playerid][pLevel]);
    if ( !strcmp( name, "Money" ) ) SetPVarString( playerid, "PINIGAI", value );
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    if ( !strcmp( name, "Skin" ) ) SetPVarString( playerid, "Apranga", value );
return 1;
}
public LoadData(playerid)
    {
    new name[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid, name, sizeof(name));
    format(file, sizeof(file), SERVER_USER_FILE, name);
    INI_ParseFile(file, "load_user_data_%s", false, true, playerid );
    SetPlayerPos(playerid,GetPVarFloat(playerid,"POSX"),GetPVarFloat(playerid,"POSZ"),GetPVarFloat(playerid,"POSY"));
    SetPlayerInterior(playerid,GetPVarInt( playerid, "Interid"));
    SetPlayerScore(playerid,GetPVarInt(playerid, "EXP"));
    GivePlayerMoneyA(playerid,GetPVarInt( playerid, "PINIGAI"));
    SetPlayerSkin(playerid,GetPVarInt( playerid, "Apranga"));
    return 1;
    }
but still the same....
Maybe someone can post here or in my PM your Load and Save Script with Y_ini?
Reply


Messages In This Thread
Need help with Y_ini - by marrcko - 14.05.2011, 07:21
Re: Need help with Y_ini - by Shoaib - 14.05.2011, 09:40
Re: Need help with Y_ini - by marrcko - 14.05.2011, 10:07
Re: Need help with Y_ini - by marrcko - 14.05.2011, 15:45

Forum Jump:


Users browsing this thread: 2 Guest(s)