SamB Posted January 12, 2007 Share Posted January 12, 2007 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
Tommis Posted January 15, 2007 Share Posted January 15, 2007 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
Aeron Posted January 16, 2007 Share Posted January 16, 2007 I think i can't detect that on join. Feel free to fix it urself Link to comment
Recommended Posts