14.05.2011, 15:45
Sry for double post but i had notice that i dont get variables wicth are like this:
I tried this:
but still the same....
Maybe someone can post here or in my PM your Load and Save Script with Y_ini?
Код:
INI_Float("pos_X",z); INI_Float("pos_Y",y); INI_Float("pos_Z",z); SetPlayerPos(playerid,x,y,z);
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;
}
Maybe someone can post here or in my PM your Load and Save Script with Y_ini?