Jump to content

$mta.race problem


SamB

Recommended Posts

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?

Link to comment

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

Link to comment
  • Recently Browsing   0 members

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