John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 it doesnt draw the image at all Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 Are you even sure or the trigger gets send? Put a outputChatBox before it to be sure.. Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 its not outputting anything i dont know why edit: probably because something is wrong in Dealman's code Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 Well I don't know anything about the code which you are using because I never saw it, so I can't help you now. Link to comment
Dealman Posted July 20, 2014 Share Posted July 20, 2014 its not outputting anything i dont know whyedit: probably because something is wrong in Dealman's code Nothing is wrong with it. How are you triggering the event onLevelHundred Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 as i got told by Et-win, im using this triggerClientEvent(killer,"onLevelHundred",killer) Link to comment
Driggero Posted July 20, 2014 Share Posted July 20, 2014 edit: probably because something is wrong in Dealman's code Oh no you di'int Code is fine though, you're just not triggering the event. Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 Post the function if you want help. Or check if your data is actually 56001-60000 Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 data has to be minimum 560001 to trigger the event,and i have 1,5 million and i dont know what u need of code because i posted the code about this triggering thing Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 elseif (tonumber(exp) >= 560001 and tonumber(exp) <=600000) then You know that it doesn't work when it's lower than 600000? Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 that's not the problem,i've increased the number to 600 million and still doesnt draw the image for me Link to comment
Dealman Posted July 20, 2014 Share Posted July 20, 2014 We can't help you if you won't post enough relevant code to help you. We're, well at least not I am gonna sit here and play some sort of guessing game. If you're scared it might be 'stolen', go ahead and PM me instead. Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 sry for doublepost but i got 1 problem left when i login it doesnt directly draw my image,only when i kill someone why doesnt this work? function onLogin (_,account) setElementData(source, "LV", getAccountData(account, "LV") or "0") setElementData(source, "EXP", getAccountData(account, "XP") or "0") local dLevel = getAccountData(account, "LV") or 0 if dLevel == "100" then outputChatBox("1",root) triggerClientEvent(source,"onLevelHundred",source) outputChatBox("2",root) end addEventHandler ("onPlayerLogin", root, onLogin) it doesnt output anything and its server side please help Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 If it doesn't output anything, then dLevel is not "100", besides, I think you meant: if dLevel == 100 then maybe? EDIT: setElementData(source, "LV", getAccountData(account, "LV") or "0") setElementData(source, "EXP", getAccountData(account, "XP") or "0") local dLevel = getAccountData(account, "LV") or 0 I don't understand why first 2 times "or "0"" and then "or 0" btw. Link to comment
John Smith Posted July 20, 2014 Author Share Posted July 20, 2014 oh thank you i thought when checking data that i had to use "value" but seems like " " is useless,anyway thank you Et-win btw im using or 0 to see if its new account and if it is it sets it to 0 Link to comment
Et-win Posted July 20, 2014 Share Posted July 20, 2014 '123' and "123" are strings. 123 = int = number And it depends on how you save it. You can use the string too but then you have to put 'tonumber(string)' for example. btw im using or 0 to see if its new account and if it is it sets it to 0 Oh right, forgot that one. ^^ 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