Moinsen ich habe mich Heute mal wieder an etwas versucht nur leider krieg ich einen Nil value error ohne das ich weis wieso
Bei diesem script kommt der Error :
Lua
local itemSpawnPoints = {
--[[1]] [1]="1589.9239501953, -1285.9808349609, 16.509101867676"
}
for z = 1, #itemSpawnPoints, 1 do
local x, y, z = gettok(itemSpawnPoints[z], 1, ","), gettok(itemSpawnPoints[z], 2, ","), gettok(itemSpawnPoints[z], 3, ",")
local rnd = math.random(1,100)
if (rnd < 20) then
createGun(math.random(1,4),x, y, z,math.random(50,100))
elseif (rnd > 60) then
createFood( x, y, z, math.random(5,30) )
end
end
outputDebugString ( #itemSpawnPoints, 3 )
Alles anzeigen
der Error kommt bei createGun und CreateFood die Funktionen existieren.
wenn die Anderen scripts benötigt werden bitte bescheid sagen bin der meinung nur dieses wird benötigt
MfG