^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 why it donst Aibo ?? Link to comment
TAPL Posted December 3, 2011 Share Posted December 3, 2011 function [color=#FF0000]win[/color](ammo, killer, weapon, bodypart) addEventHandler( "onPlayerWasted", getRootElement(), [color=#FF0000]Win[/color]) Link to comment
^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 what you mean tapl what about it ?? Link to comment
^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 even this has a name like me my name is win and his name is Player_Wasted so what is worng?? Link to comment
CapY Posted December 3, 2011 Share Posted December 3, 2011 (edited) what you mean tapl what about it ?? LUA IS CASE SENSITIVE!! Edited December 3, 2011 by Guest Link to comment
Al3grab Posted December 3, 2011 Share Posted December 3, 2011 even this has a name like me my name is win and his name is Player_Wasted so what is worng?? function [color=#FF0000][size=8][b]w[/b][/size][/color]in(ammo, killer, weapon, bodypart) addEventHandler( "onPlayerWasted", getRootElement(), [color=#FF0000][b][size=8]W[/size][/b][/color]in) Link to comment
^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 Al3grab i dont get what he mean so i remove the win or what ?? please show me how ? Link to comment
Castillo Posted December 3, 2011 Share Posted December 3, 2011 exports.scoreboard:scoreboardAddColumn("EXP") exports.scoreboard:scoreboardAddColumn("Level") function win(ammo, killer, weapon, bodypart) local H = getElementData(killer, "EXP") local S = getElementData(killer, "Level") local killer1 = getPlayerName(killer) local noob = getPlayerName(source) if killer and killer ~=source then setElementData(killer, "EXP", tonumber(H)+1) if tonumber(H) == 10 then setElementData(killer, "Level", "Lvl 1") elseif tonumber(H) == 20 then setElementData(killer, "Level", "Lvl 2") elseif tonumber(H) == 30 then setElementData(killer, "Level", "Lvl 3") elseif tonumber(H) == 40 then setElementData(killer, "Level", "Lvl 4") elseif tonumber(H) == 50 then setElementData(killer, "Level", "Lvl 5") elseif tonumber(H) == 60 then setElementData(killer, "Level", "Lvl 6") end outputChatBox(killer1 .. "Killed " .. noob .. " and gained +1 EXP", getRootElement(), 255, 255, 0, false) end end addEventHandler( "onPlayerWasted", getRootElement(), win) Link to comment
^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 what is the new soldSnake 14? is it the same ?? Link to comment
Castillo Posted December 3, 2011 Share Posted December 3, 2011 You had put "Win" (UPPER CASE 'W') in the EVENT HANDLER, and in the function you put win (LOWER CASE 'w'). Link to comment
^Dev-PoinT^ Posted December 3, 2011 Author Share Posted December 3, 2011 oh i dont see it sorry Man thank You a lot ! Link to comment
Castillo Posted December 3, 2011 Share Posted December 3, 2011 You really should try to learn more english, because many people has explained your error many times and you didn't understood them. 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