Jump to content

Search the Community

Showing results for tags 'how to fix error: [shop]\food shop\shop server.lua:4: attempt to perform arithmetic on a boolean value?'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Multi Theft Auto: San Andreas 1.x
    • Support for MTA:SA 1.x
    • User Guides
    • Open Source Contributors
    • Suggestions
    • Ban appeals
  • General MTA
    • News
    • Media
    • Site/Forum/Discord/Mantis/Wiki related
    • MTA Chat
    • Other languages
  • MTA Community
    • Scripting
    • Maps
    • Resources
    • Other Creations & GTA modding
    • Competitive gameplay
    • Servers
  • Other
    • General
    • Multi Theft Auto 0.5r2
    • Third party GTA mods
  • Archive
    • Archived Items
    • Trash

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Gang


Location


Occupation


Interests

Found 1 result

  1. ฟังก์ชั่น foodshop(food_name,Price) player_money = getPlayerMoney(source) if ( player_money >= Price) ดังนั้น ถ้า getElementData(source,"Myslots") + 1 <= getElementData(source,"MAX_Slots") จากนั้น setElementData(source,food_name,getElementData (source,food_name) + 1) takePlayerMoney(source, Price) outputChatBox("#FF0000[TUNING] #FFFFFF ไม่ต้องซื้อ "..food_name.." และชำระเงิน "..Price.." บาท", source, 255 , 255, 255 , true) else outputChatBox("#FF0000[TUNING] #FFFFFFกระเป๋าเต็ม !!", source, 255, 255, 255 , true) end else outputChatBox("#FF0000[TUNING] #FFFFFFเงินของคุณไม่ พอ", แหล่งที่มา, 255, 255, 255 , true) end end addEvent("foodshop", true) addEventHandler("foodshop", getRootElement(), foodshop) function foodshop(food_name,Price) player_money = getPlayerMoney(source) if ( player_money >= Price) then if getElementData(source,"Myslots") + 1 <= getElementData(source,"MAX_Slots") then setElementData(source,food_name,getElementData(source,food_name) + 1) takePlayerMoney(source, Price) outputChatBox("#FF0000[TUNING] #FFFFFFคุณได้ซื้อ "..food_name.." และชำระเงิน "..Price.." บาท", source, 255, 255, 255 , true) else outputChatBox("#FF0000[TUNING] #FFFFFFกระเป๋าเต็ม !!", source, 255, 255, 255 , true) end else outputChatBox("#FF0000[TUNING] #FFFFFFเงินของคุณไม่พอ", source, 255, 255, 255 , true) end end addEvent("foodshop", true) addEventHandler("foodshop", getRootElement(), foodshop)
×
×
  • Create New...