Hallo
ich habe ein problem bei diesen Command
Lua
function search(thePlayer,command,pID)
if ( getElementData(thePlayer, "Fraktion") == 1 )then
outputChatBox ( "Du durchsuchst "..pID.." ...",thePlayer)
outputChatBox ( "__________________________________________________________",thePlayer)
outputChatBox ( "Du Wurdest von "..getPlayerName(thePlayer).." Durchsucht",pID)
outputChatBox ( "Materialien: "..getElementData(pID, "Materials")..".",thePlayer)
outputChatBox ( "Drogen: "..getElementData(pID, "Drugs")..".",thePlayer)
outputChatBox ( "__________________________________________________________",thePlayer)
end
end
addCommandHandler ( "frisk", search )
Alles anzeigen
er spuckt einen Error Ein Bad Argumen Bei getElementData