SamB Posted January 12, 2007 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? MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Tommis Posted January 15, 2007 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 Best game server hosting. America East&West Coast, and many European locations available. Click on the above link to check us out!
Aeron Posted January 16, 2007 Posted January 16, 2007 I think i can't detect that on join. Feel free to fix it urself "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."
SamB Posted January 16, 2007 Author Posted January 16, 2007 meh, lol. MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Recommended Posts