SamB Posted August 1, 2006 Share 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 Link to comment
Oli Posted August 1, 2006 Share Posted August 1, 2006 on *:SIGNAL:mta.command: { if ($3 == !baggage) { !writeini -n vehicle.ini Baggage $mta.nick($1,$2) 1 } } Link to comment
SamB Posted August 1, 2006 Author Share Posted August 1, 2006 doesnt work. also it shud write someting like: in mta SamB: !baggage the ini file [Vehicle] SamB=Baggage Link to comment
Harry Posted August 1, 2006 Share 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. Link to comment
CoZ Posted August 1, 2006 Share 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 Link to comment
SamB Posted August 9, 2006 Author Share 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 Link to comment
Recommended Posts