//when the player is loggin in:
INI_ParseFile(UserPath(playerid), "LoadUser_LoginPlayer", .bExtra = true, .extra = playerid);
forward LoadUser_LoginPlayer(playerid,name[],value[]);
public LoadUser_LoginPlayer(playerid,name[],value[])
{
INI_Int("Money",PlayerInfo[playerid][MoneyPlayer]);
printf("LoadUser_LoginPlayer Money- %d", PlayerInfo[playerid][MoneyPlayer]);
return 1;
}
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
[16:21:15] LoadUser_LoginPlayer Money- 0
for(new i;i<MAX_PLAYERS;i++)
{
printf("Money: [%d]",GetPlayerMoney(i));
break;
}
i am learning Y_ini and trying to figure out what the system is doing, so i made printf to see how it works, but my question was, why is it printing like 10 times when the function is called once?
and i think you dont understand Y_ini aswell, so dont post please. |
I don't know why it prints 10 or more times. But, it doesn't matter if it gets called once or more. You can use that callback to get information to variables. Don't use printf or SendClientMessage or timers there.
|
I do understand better than you, do not worry, i tried to help you and you are insulting me like "you don't understand so dont post please" what a bitch and thankless move!
|
are you sure that it does not matter?
someone told me to use Y_ini in my server so everything will run smoother he sayd. Checking a function 10 or more times will not make any lagg at all? is this normal? does this also happen to you guys or only me? i am sorry bro did not ment like that. thanks for trying to help me. |
well, it doesn't make any lag at all, Y_INI is the best Saving / load data i've ever seen, it's after MySQL ofcourse.
and yeah it loads more than 20times. |
I asked ****** one time about that, it's normal, you probably have 19 entries in your user file?
|