15.03.2011, 12:13
Quote:
Something like:
pawn Код:
|
Now I have:
pawn Код:
new weapons[13][2], Str[30];
for(new i = 0; i < 13; i++)
{
GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
format( Str, 30, "Weapon%d", i );
dini_IntSet(udb_encode(playername), Str, weapons[i][0]);
format( Str, 30, "Ammo%d", i );
dini_IntSet(udb_encode(playername), Str, weapons[i][1]);
}
The scriptfile is now looking like weapon0 = ... weapon 1 = ....
You need to do with everyting like GivePlayerWeapon(playerid, weapon0);
Or is there an easier way?