How to load Strings in Y_INI ? - 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: How to load Strings in Y_INI ? (
/showthread.php?tid=500835)
How to load Strings in Y_INI ? -
AnonScripter - 15.03.2014
this code is not working (Not Defined)
Re: How to load Strings in Y_INI ? -
MythicalMarauder - 15.03.2014
Did you include Y_INI?
Re: How to load Strings in Y_INI ? -
AnonScripter - 15.03.2014
Quote:
Originally Posted by MythicalMarauder
Did you include Y_INI?
|
yes i'm using y_ini saving system, but string is not working
Re: How to load Strings in Y_INI ? -
tyler12 - 15.03.2014
Quote:
Originally Posted by ******
10)
pawn Код:
public DoRead(name[], value[]) { INI_String("key", gValue); // Error line. }
Код:
<path>\errors.pwn(12) : error 017: undefined symbol "INI_String"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
"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
Re: How to load Strings in Y_INI ? -
AnonScripter - 15.03.2014
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.
Re : How to load Strings in Y_INI ? -
Golimad - 15.03.2014
pawn Код:
INI_String("RegisteredDate", PlayerInfo[playerid][pRDate], 128);
And change your enum of pRDate to :
pRDate[128],
Re: How to load Strings in Y_INI ? -
AnonScripter - 15.03.2014
thanks you, btw +rep all