hi
i have a problem with
Code:
public pokazmapy(id)
{
new file = fopen("addons/amxmodx/configs/standardmaps.ini", "rt")
new text[256], textlen
if(file)
{
new buffer[256]
while(!feof(file))
{
fgets(file, buffer, 255)
if(buffer[0])
{
textlen += format(text[textlen], 255-textlen, "%s", buffer)
}
}
}
fclose(file)
client_print(id, print_console, "%s", text)
client_print(id, print_chat, "Otworz konsole aby zobaczyc liste dostepnych map w tym momencie")
return PLUGIN_HANDLED
}
show me the first 5 maps, with such a break
de_dust2
de_inferno
de_nuke
de_train
de_dust
etc... help someone?