INI_String issue - 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: INI_String issue (
/showthread.php?tid=499126)
INI_String issue -
PrivatioBoni - 06.03.2014
Code:
pawn Code:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_String("Rank",PlayerInfo[playerid][pRank],24);
return 1;
}
I know it doesn't look right, but I appear to be following the syntax?
Errors:
Code:
error 001: expected token: ")", but found "["
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Syntax as seen here:
https://sampforum.blast.hk/showthread.php?tid=175565
pawn Code:
INI_String("a", gA, len_of_gA);
Any help is appreciated.
Re: INI_String issue -
PrivatioBoni - 07.03.2014
If anyone could help me, it'd be much appreciated.
(Hopefully I didn't bump too quickly - I don't want to come off as impatient.
)
Re: INI_String issue -
ColeMiner - 08.03.2014
You are well over the 24 hour limit with that bump, so you're good.
Sadly INI_String doesn't really support strings in 2d arrays because PAWN doesn't really support them. Put your strings in a separate variable, not in an enum.
Re: INI_String issue -
]Rafaellos[ - 08.03.2014
Is pRank string?
Re: INI_String issue -
PrivatioBoni - 08.03.2014
@ColeMiner - okay, I'll try that - thanks.
@Rafael - should be, yep.