Wysłany: 2013-09-12, 20:07
Zgredek666
LUA
Wiek: 27 Na forum: 4722 dni Posty: 251
Nick w MP: Zgredek
Piwa : 442
Witam. Stworzy?em sobie skrypt i mam problem bo mi nie ?aduje skryptu kt?ry jest w skrypcie. B?d? wdzi?czny za pomoc.
oto kod:
Kod: function startTheResource (gm1)
if (gm1) then
local gm1 = getResourceFromName("gm1")
local start = startResource(gm1)
if ( start ) then
outputChatBox ( gm1 .. " wystartowal.", thePlayer, 255, 0, 0 )
else
outputChatBox ( "Ten skrypt jest zly.", thePlayer, 255, 0, 0 )
end
else
outputChatBox ( "Prosze wybrac skrypt do startu.", thePlayer, 255, 0, 0 )
end
end
addCommandHandler ( "all", startTheResource, start )
Mam problem z 6 argumentem ze "startResource". Za pomoc Daje piwo.
Wysłany: 2013-09-13, 11:44
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
function startTheResource ( gm1 )
if ( gm1 ) then
local gm1 = getResourceFromName ( gm1 )
local start = startResource ( gm1 )
if ( start ) then
outputChatBox ( gm1 .. " wystartowal." , thePlayer , 255 , 0 , 0 )
else
outputChatBox ( "Ten skrypt jest zly." , thePlayer , 255 , 0 , 0 )
end
else
outputChatBox ( "Prosze wybrac skrypt do startu." , thePlayer , 255 , 0 , 0 )
end
end
addCommandHandler ( "all" , startTheResource , start )
Poda?e? tam stringa kt?ry podaje skrypt o nazwie gm1 a nie pobiera argument z funkcji
Wysłany: 2013-09-13, 16:01
Zgredek666
LUA
Wiek: 27 Na forum: 4722 dni Posty: 251
Nick w MP: Zgredek
Piwa : 442
Nadal nie dzia?a mam b??d w 4 i 6 argumencie a konkretnie
4: Bad Argument getResourseName
6: Access denied startResource
Wysłany: 2013-09-13, 16:13
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
function startTheResource ( thePlayer , cmd , gm1 )
if ( gm1 ) then
local gm1 = getResourceFromName ( gm1 )
local start = startResource ( gm1 )
if ( start ) then
outputChatBox ( gm1 .. " wystartowal." , thePlayer , 255 , 0 , 0 )
else
outputChatBox ( "Ten skrypt jest zly." , thePlayer , 255 , 0 , 0 )
end
else
outputChatBox ( "Prosze wybrac skrypt do startu." , thePlayer , 255 , 0 , 0 )
end
end
addCommandHandler ( "all" , startTheResource , start )
I daj prawa skryptowi bo nie u?yjesz funkcji zasob?w
Wysłany: 2013-09-13, 16:19
Zgredek666
LUA
Wiek: 27 Na forum: 4722 dni Posty: 251
Nick w MP: Zgredek
Piwa : 442
Hm... B??dy znikn??y ale nadal nie ?aduje mi skryptu kt?ry jest w skrypcie (doda?em prawa do Acl Admin)
Tagi: startresource
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: