Hi,
habe ein Problem mit dem speichern von Waffen. Sobald man mit /job in Dienst geht startet der Timer Weapons(playerid) und sollte die Waffen in strings speichern ...
public Weapons(playerid)
{
GetPlayerWeaponData(playerid, 0, JobInfo[playerid][Weapon1], JobInfo[playerid][Ammo1]);
GetPlayerWeaponData(playerid, 1, JobInfo[playerid][Weapon2], JobInfo[playerid][Ammo2]);
GetPlayerWeaponData(playerid, 2, JobInfo[playerid][Weapon3], JobInfo[playerid][Ammo3]);
GetPlayerWeaponData(playerid, 3, JobInfo[playerid][Weapon4], JobInfo[playerid][Ammo4]);
GetPlayerWeaponData(playerid, 4, JobInfo[playerid][Weapon5], JobInfo[playerid][Ammo5]);
GetPlayerWeaponData(playerid, 5, JobInfo[playerid][Weapon6], JobInfo[playerid][Ammo6]);
GetPlayerWeaponData(playerid, 6, JobInfo[playerid][Weapon7], JobInfo[playerid][Ammo7]);
GetPlayerWeaponData(playerid, 7, JobInfo[playerid][Weapon8], JobInfo[playerid][Ammo8]);
GetPlayerWeaponData(playerid, 8, JobInfo[playerid][Weapon9], JobInfo[playerid][Ammo9]);
GetPlayerWeaponData(playerid, 9, JobInfo[playerid][Weapon10], JobInfo[playerid][Ammo10]);
JobUpdate(playerid);
return 1;
}
Ich habe mir auch mal per SendClientMessage die Strings auslesen lassen, alle zeigen 0 an obwohl ich die 9 mm Pistole hatte ..
hat jmd ne Idee?
Gruß samu