Help me!
#3

Quote:
Originally Posted by jasperschellekens
Посмотреть сообщение
You can create a loop for example something like this:

PHP код:
#define MAXINDEX 4
stock PhoneShowSystem(playeridindexstring[])
{
        for(new 
0;d<MAXINDEX;d++)
    {
            new 
index d;
        
PlayerTextDrawSetString(playeridPhoneList1[index][playerid], string);
        
PlayerTextDrawShow(playeridPhoneList1[index][playerid]);
    }
    return 
1;

i want index = 0 to 4 =>
Код:
#define MAXINDEX 5
stock PhoneShowSystem(playerid, index, string[])
{
        for(new d = 0;d<MAXINDEX;d++)
	{
        	index = d;
		PlayerTextDrawSetString(playerid, PhoneList1[index][playerid], string);
		PlayerTextDrawShow(playerid, PhoneList1[index][playerid]);
	}
	return 1;
}
But it is working all = 4 how to fix it?
Reply


Messages In This Thread
REPAIRED - by Libbyphay - 03.07.2018, 09:58
Re: Help me! - by jasperschellekens - 03.07.2018, 10:15
Re: Help me! - by Libbyphay - 03.07.2018, 10:46
Re: Help me! - by Libbyphay - 03.07.2018, 11:00

Forum Jump:


Users browsing this thread: 1 Guest(s)