SamB Posted August 1, 2006 Posted August 1, 2006 How do u make scripts write inis? on *:SIGNAL:mta.command: { if ($3 == !baggage) { mta.text $1 $writeini $vehicle.ini == $mta.nick($1,$2)=Baggage } } If someone could correct it for me, tell me were i went wrong, etc. that would be nice MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Oli Posted August 1, 2006 Posted August 1, 2006 on *:SIGNAL:mta.command: { if ($3 == !baggage) { !writeini -n vehicle.ini Baggage $mta.nick($1,$2) 1 } } Proud member of Multi Theft Auto Founder of Full Metal Jacket Creator of MTA:mA:GRS http://www.mtafmj.com http://www.full-fat.com
SamB Posted August 1, 2006 Author Posted August 1, 2006 doesnt work. also it shud write someting like: in mta SamB: !baggage the ini file [Vehicle] SamB=Baggage MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Harry Posted August 1, 2006 Posted August 1, 2006 Yes, thats exactly what Oli's script is doing. If you expect it to do sometihng else, please explain what you expect in the ini Furthermore: /help /writeini /writeini -n Writes to files in the standard INI file format. If the -n switch is specified, mIRC will attempt to write to the .ini file even if it is larger than 64k. A part of the mirc.ini file looks like this: [DDE] ServerStatus=on ServiceName=mirc You could achieve this with /writeini by using: /writeini my.ini DDE ServerStatus on /writeini my.ini DDE ServiceName mirc You can delete whole sections or items by using the /remini command. Warning: Do not use this command to modify any of the INI files currently being used by mIRC.
CoZ Posted August 1, 2006 Posted August 1, 2006 i think your trying to make on *:SIGNAL:mta.command: { if ($3 == !car) { !writeini -n " $+ $scriptdir $+ vehicle.ini" VEHICLE $mta.nick($1,$2) Baggage } } this at least would result in a file called vehicle.ini with this info if you use the command [Vehicle] SamB=Baggage BUT .. afaik its not possible in SA script currently to read which car a player is in ... anyway ..just to write a ini file in general .. psuedocode !writeini Server Blog | Server quickinfo STFU and dont bug the mta team with ''when is DM comming'' or risk theyre spending more time explaining they're still working on DM than actually getting work done
SamB Posted August 9, 2006 Author Posted August 9, 2006 im not trying to make it show what car ur in i just want it to do as i said SamB: !baggage (ini file) [Vehicle] SamB=Baggage And i dont want any fancy stuff like !$Something($1$2) SamB=$Something($1$2) i just want it to do as i said without anything else in the entire world then i can worry about it reading it MTA:SA servers at 0.15 GBP per slot. MySQL, FTP and control panel included
Recommended Posts