Jump to content

Pablosino

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Pablosino

  1. ok i tree make new script but still doesn't work i still write wiki but nothing i make one week score save scriptt but still dosen't work please help .. i have this error... !! savescore/server.lua:18: attempt to call global 'getPlayerScore' (a nil value) !! lua node = xmlLoadFile ("player.xml") function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount(source))) then local accountData = getAccountData (theCurrentAccount, "score") if (accountData) then local playerScore = getAccountData(theCurrentAccount, "score") setPlayerScore(source, playerScore) end end end addEventHandler("onPlayerLogin", getRootElement(), playerLogin) function onQuit() if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData(account,"score", tostring(getPlayerScore(source))) end end end addEventHandler("onPlayerQuit", getRootElement(), onQuit)
  2. oh sorry this is me old lua and don't work too now i add me actualy lua
  3. Hi all i tree make new script for save score but don't work, Thx for all help This is my lua addEventHandler ( "onPlayerLogin", root, function( thePreviousAccount, theCurrentAccount, autoLogin ) setAccountData( account,"score",tonumber( getAccountData( account,"score" ) ) ) setElementData( Player, "score", tonumber( getAccountData( account,"score" ) ) ) source, "score") ) ) end else local accountSource = getPlayerAccount ( source ) setElementData( source, "score", tonumber( getAccountData( accountSource,"score" ) ) ) end ) addEventHandler( "onPlayerQuit",root, local account = getPlayerAccount ( source ) if not getAccountData( account,"score" ) and not getAccountData( account,"score" ) end setElementData( source,"score",tonumber( getAccountData( account,"score" ) ) ) source, "score") ) end ) addEventHandler( "onResourceStart",resourceRoot, function( ) outputDebugString( "add score to scoreboard Return: "..tostring( call( getResourceFromName("Scoreboard"), "addScoreboardColumn", "score",root,2, 0.032 ) ) ) end )
  4. YES now error fixed but still don't work still is in game old skin
  5. now eror ERROR: Couldn't find file skin1.txd for resource spiderman Loading of resource 'spiderman' failed ???
  6. Hi all i download new skin superman file skin1.ddf and skin2txd but in game is old skin what i have bad please help this is me xml and lua lua local skins = {{fileName="skin1", skinID=9} function load() for index, skin in pairs(skins) do engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) end end addEventHandler("onClientResourceStart",resourceRoot, function () local version = getVersion() if string.find(version.mta, "1.3") then setTimer ( load, 1000, 1) end end) xml Please help thx..
  7. Hi all me need help i like assault gamemode me play this gamemode with friends but i have bug i play assault map but when i use votemap so next map have time from first map and this time still runs and new time too and when time from first map finish so round ends and new time still run . but me must use votemap becouse assault gamemode don't have autovote.. me now use restart server for repair this bug.. This bugs is in all MTA:SA versions. Please help me with this problem, thanks and sorry for my bad english..
×
×
  • Create New...