Jump to content

مشكله بلداتا


Recommended Posts

سلام عليكم ورحمة الله وبركاته , عندي مشكله بشوب الاسلاحه كل مااشتري يجيني بلديبق سطر 531

ملف سيرفر

--ServerSide

function(Cost, CompatAmmo, SawnOffAmmo, RiflesAmmo, ShoutgunAmmo, M4Ammo, SniperAmmo, AkAmmo, PistolAmmo, SilencedAmmo, DeagleAmmo, TecAmmo, UziAmmo, Mp5Ammo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, LauncherAmmo, armsPlayer )
	local ALLAmmo = tonumber(CompatAmmo[1] + SawnOffAmmo[1] + RiflesAmmo[1] + ShoutgunAmmo[1] + M4Ammo[1] + SniperAmmo[1] + AkAmmo[1] + PistolAmmo[1] + SilencedAmmo[1] + DeagleAmmo[1] + TecAmmo[1] + UziAmmo[1] + Mp5Ammo[1])
   	local AmmoG = tonumber(GrenadaAmmo[1] + TeargasAmmo[1] + LauncherAmmo[1])
	if getElementData(source,"Money") >= tonumber(Cost) then
    
    

 

انا محاطيته كامل ,

 

ملف كلينت ,

 

	if source == BuyButton1 or source == BuyButton2 then
	refresh()
		local CompatAmmo = {tonumber(guiGetText(CompatEdit)) or 0, 27}
		local SawnOffAmmo = {tonumber(guiGetText(SawnOffEdit)) or 0, 26}
		local RiflesAmmo = {tonumber(guiGetText(RiflesEdit)) or 0, 33}
		local ShoutgunAmmo = {tonumber(guiGetText(ShoutgunEdit)) or 0, 25}
		local M4Ammo = {tonumber(guiGetText(M4Edit)) or 0, 31}
		local SniperAmmo = {tonumber(guiGetText(SniperEdit)) or 0, 34}
		local AkAmmo = {tonumber(guiGetText(AkEdit)) or 0, 30}
		local PistolAmmo = {tonumber(guiGetText(PistolEdit)) or 0, 22}
		local SilencedAmmo = {tonumber(guiGetText(SilencedEdit)) or 0, 23}
		local DeagleAmmo = {tonumber(guiGetText(DeagleEdit)) or 0, 24}
		local TecAmmo = {tonumber(guiGetText(TecEdit)) or 0, 32}
		local UziAmmo = {tonumber(guiGetText(UziEdit)) or 0, 28}
		local Mp5Ammo = {tonumber(guiGetText(Mp5Edit)) or 0, 29}
		local GrenadaAmmo = {tonumber(guiGetText(GrenadaEdit)) or 0, 16}
		local TeargasAmmo = {tonumber(guiGetText(TeargasEdit)) or 0, 17}
		local ParachuteAmmo = {tonumber(guiGetText(ParachuteEdit)) or 0, 46}
		local LauncherAmmo = {tonumber(guiGetText(LauncherEdit)) or 0, "Launcher"}
		local Cost = tonumber(string.sub(guiGetText(Total1), 1))
		if Cost > 0 then
			if armsPlayer then
				if getElementData(armsPlayer, "GunsDealer") and getElementData(armsPlayer, "GunsDealer") >= Cost then
					triggerServerEvent("BuyWeapon", localPlayer, Cost, CompatAmmo, SawnOffAmmo, RiflesAmmo, ShoutgunAmmo, M4Ammo, SniperAmmo, AkAmmo, PistolAmmo, SilencedAmmo, DeagleAmmo, TecAmmo, UziAmmo, Mp5Ammo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, LauncherAmmo, armsPlayer)
				else
					outputChatBox("This dealer doesn't have enough guns!", "البائع لا يملك عدد كافي من الرصاصات")
				end
			else
				triggerServerEvent("BuyWeapon", localPlayer, Cost, CompatAmmo, SawnOffAmmo, RiflesAmmo, ShoutgunAmmo, M4Ammo, SniperAmmo, AkAmmo, PistolAmmo, SilencedAmmo, DeagleAmmo, TecAmmo, UziAmmo, Mp5Ammo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, GrenadaAmmo, TeargasAmmo, ParachuteAmmo, LauncherAmmo)
			end

 

في رد لوسمحتو

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...