Search the Community
Showing results for tags 'trabalho pizza'.
-
Bom eu estava fazendo um script de entregador de pizza so que ele deu este erro SCRIPT ERROR: [managers]\Entregado-de-pizza\server.lua:45: unexpected symbol near ']' ERROR: Loading script failed: [managers]\Entregado-de-pizza\server.lua:45: unexpected symbol near ']' Tentei de tudo mais não consegui e resolvi pedir ajuda aqui Script : Inicio = createMarker (2097.1354980469, -1799.8197021484, 13.3828125 -1, "cylinder", 2, 255, 0, 0, 255) Final = createMarker (2803.4304199219, -1177.8922119141, 25.520080566406 -1, "cylinder", 2, 255, 0, 0, 255) Final = createBlipAttachedTo ( Final, 19 ) setElementVisibleTo ( Final, root, false ) veh = {} function inici (source) if isElementWithinMarker(source, Inicio) then if veh[source] and isElement( veh[source] ) then destroyElement ( veh[source] ) veh[source] = nil end x,y,z = getElementPosition(source) Trabalho = true veh[source] = createVehicle(448,2113.3620605469, -1782.1077880859, 13.388433456421) setElementVisibleTo ( Final, source, true ) warpPedIntoVehicle ( source, veh[source] ) outputChatBox ("#0000FF==============================================================================",source,0,0,0,true ) outputChatBox ("#FFD700[#FFFF00Info#FFD700]#FFFF00Entregue as pizzas ate a bandeira vermelha",source,0,0,0,true ) outputChatBox ("#FFD700[#FFFF00Tutorial#FFD700]#FFFF00Para saber onde fica essa bandeira vermelha aperte F11 ",source,0,0,0,true ) outputChatBox ("#0000FF==============================================================================",source,0,0,0,true ) end end addEventHandler( "onMarkerHit", Inicio, inici ) function fim (source) if veh[source] and isElement(veh[source]) then destroyElement (veh[source]) givePlayerMoney(source,2000) setElementVisibleTo ( Final, source, false ) outputChatBox("#FFFF00[#FFD700Info#FFFF00]#FFD700Você concluiu sua entrega e recebeu 2000 reais",source,0,0,0,true) else end end addEventHandler("onMarkerHit",Final ,fim) function sair (source) if (veh[source]) and isElement(veh[source]) then setElementVisibleTo ( Final, source, false ) destroyElement (veh[source]) outputChatBox("#FFD700[#FFFF00Info#FFD700]#FF0000Você saiu do veiculo e perdeu o emprego",source ,0,0,0,true ) else end end addEventHandler( "onVehicleExit", getRootElement[], sair )