βurak Posted January 20, 2021 Share Posted January 20, 2021 hi I want to check if the player is dead but it gives me an error function savePlayerData(player) if (player) then local account = getPlayerAccount(player) if(isGuestAccount(account) == false) then local accountName = getAccountName(account) local playerLevel = getPlayerLevel(player) local playerEXP = getPlayerEXP(player) local tempEXP = getPlayerTempEXP(player) local barEXP = getPlayerBarEXP(player) local playerMoney = getPlayerMoney(player) local playerWeapons if(isPeadDead(player)) then playerWeapons = toJSON(player_weapons[player]) else playerWeapons = convertWeaponsToJSON(player) end end end end addCommandHandler("saveme", function(player) savePlayerData(player) end ) Link to comment
Moderators IIYAMA Posted January 20, 2021 Moderators Share Posted January 20, 2021 7 minutes ago, Burak5312 said: hi I want to check if the player is dead but it gives me an error isPeadDead Typo 1 Link to comment
βurak Posted January 20, 2021 Author Share Posted January 20, 2021 yes i missed it, thanks IIYAMA 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now