rE5vK8bu Posted January 31, 2016 Share Posted January 31, 2016 That's right? if getAccountData(account,"dead")then respawnPlayer(player) return elseif getAccountData(account,"faint")then triggerClientEvent(player,"setPlayerFaint",player,getElementData(account,"faint_tick")or false) return end Link to comment
KariiiM Posted January 31, 2016 Share Posted January 31, 2016 Not correct, What do you want to make? Link to comment
Enargy, Posted January 31, 2016 Share Posted January 31, 2016 That's right? if getAccountData(account,"dead")then respawnPlayer(player) return elseif getAccountData(account,"faint")then triggerClientEvent(player,"setPlayerFaint",player,getElementData(account,"faint_tick")or false) return end No, bcause you're returning at elseif, not ending. it will work perfectly with non-return. if getAccountData(account,"dead")then respawnPlayer(player) elseif getAccountData(account,"faint")then triggerClientEvent(player,"setPlayerFaint",player,getElementData(account,"faint_tick")or false) end Link to comment
KariiiM Posted January 31, 2016 Share Posted January 31, 2016 His topic title says (problem with "return") ,so I focused on what he wants to do, which value wants to return let's wait his answer Link to comment
Enargy, Posted January 31, 2016 Share Posted January 31, 2016 His topic title says (problem with "return") ,so I focused on what he wants to do, which value wants to return let's wait his answer He didn't tell what does he want to do with these returns. Link to comment
rE5vK8bu Posted January 31, 2016 Author Share Posted January 31, 2016 I just wondered if I could use return in elseif Thanks Gaberiel. Link to comment
ALw7sH Posted January 31, 2016 Share Posted January 31, 2016 Yes you can return in elseif 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