alright, but i need 2 more thing, i used:
########## Player Lists
on *:TEXT:-tanklin list:?: {
var %inicount = $ini(tanklinplayers.ini,players,0)
var %i = 1, %users
while (%i <= %inicount) {
var %users = %users $ini(tanklinplayers.ini,players,%i)
inc %i
}
msg #contests 0,1[14««7« 7T0anklin 7P0layers 7L0ist (7 $lines(tanklinplayers.ini) 0) 7»14»»0]
msg #contests %users
msg #contests 0,1[14««7« 7E0nd 7o0f 7P0layers 7L0ist 7»14»»0]
}
i used: $lines(tanklinplayers.ini) to show how many lines are in the files (so how many user but with the [player] it add an extra line, is there anyway to substract 1 to the number eh or make a count without [player]
also, i need a message that say: you aren't registered if user try to unregister when not in the list
Edit: oh nice i fixed teh total user in the list by changing the code to the following:
########## Lists
on *:TEXT:-tanklin list:?: {
var %inicount = $ini(tanklinplayers.ini,players,0)
var %i = 1, %users
while (%i <= %inicount) {
var %users = %users $ini(tanklinplayers.ini,players,%i)
inc %i
[color:red] var %totaltanklinplayers = $lines(tanklinplayers.ini)
dec %totaltanklinplayers 1[/color]
}
msg #contests 0,1[14««7« 7T0anklin 7P0layers 7L0ist[color:red] (7 %totaltanklinplayers 0)[/color] 7»14»»0]
msg #contests %users
msg #contests 0,1[14««7« 7E0nd 7o0f 7P0layers 7L0ist 7»14»»0]
}
this post is getting LONG and the thread too lol, ew neway, im checking for the message that say user isnt registered
thx to everybody who tooks few mins of their time to help me ! its really appreciated