Jump to content

Map Rating


#Paper

Recommended Posts

Posted

What's wrong?

local g_Root = getRootElement() 
addEventHandler('onGamemodeMapStart', g_Root, 
function() 
local getrate = call(getResourceFromName("mapratings"), "getMapRating()") 
outputChatBox ("#EE2C2C*This map is rated "..getrate.."!", 255,255,255, true) 
end 
) 

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

Posted

line 4, remove () after getMapRating

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

any errors in debug script?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

getMapRating requires map name passed to it.

local g_Root = getRootElement() 
addEventHandler('onGamemodeMapStart', g_Root, 
  function(startedMap) 
    local mapName = getResourceName(startedMap) 
    local getrate = call(getResourceFromName("mapratings"), "getMapRating", mapName) 
    outputChatBox ("#EE2C2C*This map is rated "..getrate.."!", 255,255,255, true) 
  end 
) 

?

Posted

[PRO]HUNT3R, this in English language forums, if you want to use your native - please send your message via Private Message feature. thank you

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
Sun :D fai in chat /config e abilita la funzione maprating.e semplice.

-.-" ch c'entra xD quello è per abilitare lo script non quello che serve a me xD

Sorry for not english xD

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

Posted

There should be a warning system here :/

ActianoX - are you blind or just like to be annoying? :/

just use damn PM

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

  • 2 weeks later...
Posted
getMapRating requires map name passed to it.
local g_Root = getRootElement() 
addEventHandler('onGamemodeMapStart', g_Root, 
  function(startedMap) 
    local mapName = getResourceName(startedMap) 
    local getrate = call(getResourceFromName("mapratings"), "getMapRating", mapName) 
    outputChatBox ("#EE2C2C*This map is rated "..getrate.."!", 255,255,255, true) 
  end 
) 

ok ty, but return a false or table number (table:297324) value, don't return the rate...

mtaubluascripter.png

My skype: skiper964

I helped you? Help me! ^^

Help me bro! ^^

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...