How to load Strings in Y_INI ?
#1

pawn Код:
INI_String
this code is not working (Not Defined)
Reply
#2

Did you include Y_INI?
Reply
#3

Quote:
Originally Posted by MythicalMarauder
Посмотреть сообщение
Did you include Y_INI?
yes i'm using y_ini saving system, but string is not working
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
10)
  • Code
pawn Код:
public DoRead(name[], value[])
{
    INI_String("key", gValue); // Error line.
}
  • Problem
Код:
<path>\errors.pwn(12) : error 017: undefined symbol "INI_String"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
  • Solution
"INI_String" DOES exist, it just gives an unusual error when the last parameter is missed off. You must call it with the destination length.

pawn Код:
public DoRead(name[], value[])
{
    INI_String("key", gValue, sizeof (gValue));
}
4char
Reply
#5

pawn Код:
INI_String("RegisteredDate", PlayerInfo[playerid][pRDate], sizeof(PlayerInfo[playerid][pRDate]));

Код:
(6096) : error 001: expected token: "]", but found "-identifier-"
(6096) : error 001: expected token: ";", but found "]"
(6096) : error 029: invalid expression, assumed zero
(6096) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

pawn Код:
INI_String("RegisteredDate", PlayerInfo[playerid][pRDate], 128);
And change your enum of pRDate to :
pRDate[128],
Reply
#7

thanks you, btw +rep all
Reply


Forum Jump:


Users browsing this thread: