How to open player file using Y_Ini and Sscanf
#1

Hey.. how to open player file using Y_Ini and Sscanf by file name?

I need to create some command to set player value to the account dynamic. Then it doesn't matter is player Online or Offline.
Reply
#2

Are you trying to write to a file or parse it?
Reply
#3

INI_Open
INI_WriteInt
INI_Close.

pawn Код:
CMD:command(playerid, params[])
{
new filename[32];
if(sscanf(params, "s[32]", filename))
{

}
return true;
}
Wrote on the page. Don't know is it good.

@Down
Do not fuck with me.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=244223
Reply
#5

-cut-
Reply
#6

Anyone?
Reply
#7

Lol second day and i am on the fourth page. Nice. Anyone finally know how to do this?
Reply
#8

If you've actually read what I've posted, ****** gives a detailed explanation on the use of Y_ini.

PHP код:
INI_Open();
INI_Close(); 
Quote:

I need to create some command to set player value to the account dynamic.

Opening and closing is simply checking and writing. Nothing more.
Reply
#9

Then tell me how to open player file with sscanf when player is isn't online. I have this command already made but i don't know how to open PlayerFile with sscanf, understand?
Reply
#10

There really isn't an effective way of doing this, unless you saved the files with a specific key in the file name (which is still not ideal). ****** made a post about doing this quite recently, look through is recent posts and see if you can find it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)