AzcariaX
09-22-2009, 12:09
Hi!
This is my code:
public get_baa(id)
{
new name[60]
new number
new i
new read=1
while(read!=0)
{
read=read_file("buyadmin.txt", i, name, 60, number)
ColorChat(id, GREEN, "Name: %s", name)
i++
}
return PLUGIN_HANDLED
}
I know there is a better way to do this but i can't figure it out. This way is pretty buggy. It types out the first line two times. Please help me.
This is my code:
public get_baa(id)
{
new name[60]
new number
new i
new read=1
while(read!=0)
{
read=read_file("buyadmin.txt", i, name, 60, number)
ColorChat(id, GREEN, "Name: %s", name)
i++
}
return PLUGIN_HANDLED
}
I know there is a better way to do this but i can't figure it out. This way is pretty buggy. It types out the first line two times. Please help me.