writeini - 28/01/05 11:38 PM
I have this script:
that working ok, and i have !add to add people to a file, they use: !add 21 <<-- to add them self to 21, and !add 22 to add them self to 22 and so on, the problem start when they addig them self to two times, then it looks like this in the ini file:
[21]
player1=Nick
player2=Nick2
player3=Nick3
[22]
player1=Nick2
player4=Nick3
the problem is that the "player4" should be the same as "player3" and the "player1" should be "player2".. cos they are added to 21 already, and they should be added as the same player below [22] too, cos its the same nicks, and its the same players. any ideas how to solve this ?? :tongue:
Code:
on *:TEXT:*:#teting: { if ($1 == !add) { inc %players writeini player.ini $2 $+(player,%players) $nick } }
that working ok, and i have !add to add people to a file, they use: !add 21 <<-- to add them self to 21, and !add 22 to add them self to 22 and so on, the problem start when they addig them self to two times, then it looks like this in the ini file:
[21]
player1=Nick
player2=Nick2
player3=Nick3
[22]
player1=Nick2
player4=Nick3
the problem is that the "player4" should be the same as "player3" and the "player1" should be "player2".. cos they are added to 21 already, and they should be added as the same player below [22] too, cos its the same nicks, and its the same players. any ideas how to solve this ?? :tongue: