Jump to content

$mta.race problem


SamB

Recommended Posts

Posted

I have this code:

 %b = $readini mapstats.ini $replace($mta.race($1),$chr(32),format_space) Info
 %c = $readini mapstats.ini $replace($mta.race($1),$chr(32),format_space) Creator
 !writeini mapstats.ini General Current $mta.race($1)
 mta.text $1 -- $mta.race($1,$2) --
 if (%b != $null) mta.text $1 Info: %b
 else mta.text $1 Info: -
 if (%c != $null) mta.text $1 Creator: %c
 else mta.text $1 Creator: -

but it always sets the map to the wrong one. can ne1 help?

edit:

right, screw that bit of code, just found out what $mta.race($1) actually means. but, whenever i do $mta.race($1) it doesnt return anything.

i did it in a ! command, and it said: The Current map is:

it didnt return the race :( why is it not?

Posted

Hey,

After you connect to a server, the current map that is being played is npt updated with MTA:mA, i do not know if this is Aeron's error, or the servers. Please change the map when you connect with MTA:mA and it should work fine. I would add like a "if (!$mta.race($1)) mta.startrace $1 #" under mta.connect..

Cya,

Tommis

xe6za.gif

banner.gif

Best game server hosting. America East&West Coast, and many European locations available.

Click on the above link to check us out!

Posted

I think i can't detect that on join. Feel free to fix it urself :P

"Never argue with an idiot. They bring you down to their level and beat you with experience."

"Arguing on the internet is like the Special Olympics. Even if you win, you're still retarded."

signature.gif

  • Recently Browsing   0 members

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