denny199 Posted July 23, 2011 Share Posted July 23, 2011 (edited) WARNING: Bad arguement @ 'givePlayerMoney' That's Saying debugscript this is my code: werkm = createMarker ( 0, 0, 1 ) function geld (player) givePlayerMoney ( player, 1 ) end function work (player) setElementPosition ( player, 2610, -1228, 35 ) setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false ) setElementModel ( player, 140 ) lol = setTimer (geld, 9000, 0 ) end addEventHandler ( "onMarkerHit", werkm, work ) But it Doesn't work help pls!\ and to this not! localPlayer = getLocalPlayer ( ) Edited July 23, 2011 by Guest Link to comment
DarkLink Posted July 23, 2011 Share Posted July 23, 2011 are you sure that you are passing player as argument for function geld? can you show to us that part of the code? when you call the function? Link to comment
denny199 Posted July 23, 2011 Author Share Posted July 23, 2011 Erggghghh u want my full code? well here it is t1 = createMarker (2647, -1234, 34, "corona", 1.2, 0, 0, 255, 250 ) t2 = createMarker (2647, -1231, 34, "corona", 1.2, 0, 0, 255, 250 ) t3 = createMarker (2647, -1230, 34, "corona", 1.2, 0, 0, 255, 250 ) t4 = createMarker (2647, -1228, 34, "corona", 1.2, 0, 0, 255, 250 ) function bots () ped1 = createPed ( 18, 2622, -1250, 35 ) ped2 = createPed ( 22, 2628, -1253, 35 ) ped3 = createPed ( 56, 2622, -1254, 35 ) ped4 = createPed ( 92, 2524, -1243, 35 ) ped5 = createPed ( 128, 2634, -1244, 35 ) ped6 = createPed ( 140, 2610, -1235, 36 ) setPedRotation ( ped1, 235 ) setPedRotation ( ped2, 183 ) setPedRotation ( ped3, 94 ) setPedRotation ( ped4, 294 ) setPedRotation ( ped5, 301 ) setPedRotation ( ped6, 56 ) end addCommandHandler ( "peds", bots ) function anims () setPedAnimation ( ped1, "dancing", "dnce_m_a", -1, true, false, false ) setPedAnimation ( ped2, "dancing", "dnce_m_b", -1, true, false, false ) setPedAnimation ( ped3, "dancing", "dnce_m_c", -1, true, false, false ) setPedAnimation ( ped4, "dancing", "dnce_m_d", -1, true, false, false ) setPedAnimation ( ped5, "dancing", "dnce_m_e", -1, true, false, false ) setPedAnimation ( ped6, "STRIP", "STR_B2C", -1, true, false, false ) end addCommandHandler ( "dance", anims ) werkm = createMarker (2612, -1228, 34, "corona", 1.0, 0, 0, 255, 250 ) function geld (player) player = getLocalPlayer () givePlayerMoney ( player, 1 ) end function work (player) setElementPosition ( player, 2610, -1228, 35 ) setPedAnimation ( player, "STRIP", "STR_B2C", -1, true, false, false ) setElementModel ( player, 140 ) lol = setTimer (geld, 9000, 0 ) end addEventHandler ( "onMarkerHit", werkm, work ) function pissen (player) setPedAnimation ( player, "PAULNMAC", "Piss_Loop", -1, true, false, false ) end addEventHandler ( "onMarkerHit", t4, pissen ) addEventHandler ( "onMarkerHit", t3, pissen ) addEventHandler ( "onMarkerHit", t2, pissen ) addEventHandler ( "onMarkerHit", t1, pissen ) Link to comment
Maccer. Posted July 23, 2011 Share Posted July 23, 2011 givePlayerMoney only requires ONE argument client-side. Instead of givePlayerMoney ( player, 1 ), do givePlayerMoney ( 1 ). Link to comment
denny199 Posted July 23, 2011 Author Share Posted July 23, 2011 givePlayerMoney only requires ONE argument client-side.Instead of givePlayerMoney ( player, 1 ), do givePlayerMoney ( 1 ). Thank you =D realy 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