NoTUs Posted April 6, 2015 Posted April 6, 2015 hallo, liebe community ich habe in der console eine warnung gefunden und weis aber nicht weiter, könnt ihr mir bitte helfen? @ 'setMarkerColor' [Expected number at argument 5, got none] hier die lua dazu, local i = 1 local r = 255 local g = 0 local b = 0 setTimer(function() if i == 1 then r = r-5 g = g+5 if r <= 0 then i = 2 end end if i == 2 then g = g-5 b = b+5 if g <= 0 then i = 3 end end if i == 3 then b = b-5 r = r+5 if b <= 0 then i = 1 end end setMarkerColor(vipCafeEnter, r, g, b) end, 100, -1 )
Jusonex Posted April 6, 2015 Posted April 6, 2015 Eigentlich sollte die Fehlermeldung selbsterklärend sein. @ 'setMarkerColor' [Expected number at argument 5, got none] Heißt es wird als 5. Argument eine Zahl erwartet, wohingegen du nichts übergeben hast. Das 5. Argument von setMarkerColor ist der Alpha-Wert: Ändere Zeile 22 also so ab: setMarkerColor(vipCafeEnter, r, g, b, 255)
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