YSI Loading and saving
#1

I fixed this, i did not know how to make loop for saving and loading lot of lines, so here is how:
Код:
forward LoadUpoznaj(idx, name[], value[]);
public LoadUpoznaj(idx, name[], value[])
{
	 new string[24];
     for(new i=1;i<20;i++)
     {
        format(string,sizeof(string),"Ime_%d",i);
        INI_String(string, UI[idx][i][Imeup], MAX_PLAYER_NAME);
        printf("Ime_%d: %s",i,UI[idx][i][Imeup]);
        continue;
     }
    return 1;
}
Reply
#2

Next time please post your issue/fix for others to observe.
Reply
#3

Quote:
Originally Posted by Sellize
Посмотреть сообщение
Next time please post your issue/fix for others to observe.
ok will edit now
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)