[Y_INI] Trying to convert dini_Get to Y_INI.
#1

Im trying to convert my dini settings to an y_ini like now i will show you what i did:

This is in dini:
pawn Код:
format(PlayerInfo[playerid][pPrisonReason], 64, "%s", dini_Get(file, "PrisonReason"));
format(PlayerInfo[playerid][pPrisonBy], 32, "%s", dini_Get(file, "PrisonBy"));
This is what im trying:
pawn Код:
INI_String("%s", PlayerInfo[playerid][pPrisonReason], PrisonReason);
    INI_String("%s", PlayerInfo[playerid][pPrisonBy], PrisonBy);
Is that good?
Reply
#2

nope..
This is -
INI_String("PrisonReason", PlayerInfo[playerid][pPrisonReason], sizeof(PlayerInfo[playerid][pPrisonReason]));
Reply
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
nope..
This is -
INI_String("PrisonReason", PlayerInfo[playerid][pPrisonReason], sizeof(PlayerInfo[playerid][pPrisonReason]));
So i dont need to add %s for the fiile like in dini? Like this:
pawn Код:
INI_String("PrisonReason %s", PlayerInfo[playerid][pPrisonReason], sizeof(PlayerInfo[playerid][pPrisonReason]));
Reply
#4

No do as i said
Reply
#5

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
No do as i said
Ok i will do in that way because this dini was confusing me, like this %s is to show the PrisonReason but in the Y_ini there no %s and only PrisonReason so it will be shown?
pawn Код:
format(PlayerInfo[playerid][pPrisonReason], 64, "%s", dini_Get(file, "PrisonReason"));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)