02.05.2009, 09:53
Ive made a command to save all the weapons + ammo to a ini file, but all i get in the ini file is this: я
This is my code:
Whats wrong?
Please help.
Thnx!
This is my code:
pawn Code:
dcmd_test(playerid,params[])
{
new Weapons[13][2];
new Name[MAX_PLAYER_NAME+1];
new File[128];
new Slot[128];
new Slot2[128];
GetPlayerName(playerid, Name, sizeof(Name));
format(File, sizeof(File), "DCMain/DCStats/%s.ini", Name);
for (new i = 0; i < 13; i++)
{
GetPlayerWeaponData(i, i, Weapons[i][0], Weapons[i][1]);
format(Slot, sizeof(Slot), "Slot%d", i);
format(Slot2, sizeof(Slot2), "Slot%dAmmo", i);
dini_Set(File, Slot, Weapons[i][0]);
dini_Set(File, Slot2, Weapons[i][1]);
}
return 1;
}
Please help.
Thnx!