/seebugs cmd
#1

I'm having a small problem with my cmd.

PHP код:
CMD:bugs(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playeridCOL_LIGHTRED"You can't do that.");
    
    new 
File:handle fopen("Bugs.txt"io_read);
     new 
string[256];
     
     if(
fexist("Bugs.txt"))
    {
        while(
fread(handlestring))
        {
            
format(string,sizeof(string),"%s\n\r"string);
            
SendClientMessage(playerid, -1string);
        }
    }
    else
    {
        
SCM(playeridCOLOR_YELLOW"There are no bugs.");
    }
    
     
fclose(handle);
     return 
1;

If this command is being performed by anyone, it will be shown like this.

PHP код:
BUG 1 
BUG 2
BUG 3
BUG 4
BUG 5
BUG 6
... 
It will continue to show all bugs. So, well, my question is: is there any way to split the bugs into more pages? Actually, I think there is, but I can't figure this out for myself.

Here's an example (my idea).

PHP код:
BUG 1 
BUG 2
BUG 3
BUG 4
/checkbugs 2 for more
Reply


Messages In This Thread
/seebugs cmd - by SHoCK44 - 13.06.2015, 12:02
Re: /seebugs cmd - by Yashas - 14.06.2015, 05:30
Re: /seebugs cmd - by Konstantinos - 14.06.2015, 10:37
Re: /seebugs cmd - by shocktheripper - 15.06.2015, 11:09

Forum Jump:


Users browsing this thread: 2 Guest(s)