GTA Közösség - A magyar GTA fórum

Multi Theft Auto (MTA) => MTA: Szerverfejlesztés => Archívum => A témát indította: Bestien Brice - 2014. október 18. - 03:50:28

Cím: Vallhala (Frakció tipusra állítás)
Írta: Bestien Brice - 2014. október 18. - 03:50:28
Sziasztok!
Ebbe hol a hiba? - Szükségem lenne a frakció tipus -ra állításra.
Előre is köszönöm.
 
function fix (thePlayer)
local theTeam = getPlayerTeam(thePlayer)
local factionType = getElementData(theTeam, \"type\")
        if not (factionType==4) then
         outputChatBox(\"Nincs járműszerelő képesítésed.\", thePlayer, 255, 0, 0)
                         local theVehicle = getPedOccupiedVehicle (thePlayer)
                                  if theVehicle and getVehicleController ( theVehicle ) == thePlayer then
                                        fixVehicle (theVehicle)
                                            outputChatBox (\"Sikeresen megszerelted a járművet !\" , thePlayer)
    end
end
addCommandHandler (\"szerel\" , fix)
Cím: Vallhala (Frakció tipusra állítás)
Írta: Carlos - 2014. október 18. - 12:54:08
Első ránézésre hiányzik egy
 
end 
Cím: Vallhala (Frakció tipusra állítás)
Írta: Bestien Brice - 2014. október 18. - 14:36:07
Köszi!  :D
Álmos voltam.
Egy else és egy end hiányzott.
Zárom