YSI Loading and saving - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: YSI Loading and saving (
/showthread.php?tid=591070)
Loop for Y_INI saving/loading [FIXED] -
Dusan01 - 07.10.2015
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;
}
Re: YSI Loading and saving -
Sellize - 08.10.2015
Next time please post your issue/fix for others to observe.
Re: YSI Loading and saving -
Dusan01 - 08.10.2015
Quote:
Originally Posted by Sellize
Next time please post your issue/fix for others to observe.
|
ok will edit now