30.03.2011, 22:57
Hi,I have a problem.My problem is don't save ammo.Gun is saved but ammo is not save.I don't solved a problem.Do you have a good idea ?
My Command:
Thanks in advance.
My Command:
Код:
if(strcmp(cmd,"/Grenade",true) == 0) { if(IsPlayerConnected(playerid)) { if(GirisYapti[playerid] == 1) { if(PlayerInfo[playerid][pGrenade] == 1) { if(Grenade[playerid] == 1) { if(16 == GetPlayerWeapon(playerid)) { //new gun,ammo; Don't WORK! //GetPlayerWeaponData(playerid,8,gun,ammo); Don't WORK! //PlayerInfo[playerid][pBombaAmmo] = ammo; Don't WORK! //PlayerInfo[playerid][pGrenade] = 1; Don't WORK! PlayerInfo[playerid][pGrenadeAmmo] = GetPlayerAmmo(playerid); SendClientMessage(playerid,COLOR_CHANGEME,"(( SYSTEM: Save Gun))"); Grenade[playerid] = 0; KarakterKaydet(playerid); // Save HilesizSilahSil(playerid); // Anti Cheat } } else if(Grenade1[playerid] == 0) { HilesizSilahVer(playerid,16,PlayerInfo[playerid][pGrenadeAmmo]); // Anti Cheat Grenade1[playerid] = 1; KarakterKaydet(playerid); // Save SendClientMessage(playerid,COLOR_CHANGEME,"(( Give Gun: ))"); } } } } return 1; }