Jump to content

Hilfe


Recommended Posts

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 ) 
  

Link to comment

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) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...