#Paper Posted November 26, 2010 Posted November 26, 2010 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 ) My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
dzek (varez) Posted November 26, 2010 Posted November 26, 2010 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)!
#Paper Posted November 26, 2010 Author Posted November 26, 2010 line 4, remove () after getMapRating don't work T_T My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
Castillo Posted November 26, 2010 Posted November 26, 2010 any errors in debug script? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Aibo Posted November 26, 2010 Posted November 26, 2010 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 ) ?
HunT Posted November 27, 2010 Posted November 27, 2010 Sun fai in chat /config e abilita la funzione maprating.e semplice. @Huntone_
dzek (varez) Posted November 27, 2010 Posted November 27, 2010 [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)!
#Paper Posted November 27, 2010 Author Posted November 27, 2010 Sun fai in chat /config e abilita la funzione maprating.e semplice. -.-" ch c'entra quello è per abilitare lo script non quello che serve a me Sorry for not english My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
dzek (varez) Posted November 27, 2010 Posted November 27, 2010 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)!
12p Posted November 27, 2010 Posted November 27, 2010 He was talking about how to enable map ratings, but acitanox said he wants to do something else.
#Paper Posted December 6, 2010 Author Posted December 6, 2010 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... My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now