Issue with INI_String - 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: Issue with INI_String (
/showthread.php?tid=650638)
Issue with INI_String -
Stefhan - 03.03.2018
Whenever I compile, I get errors on line 28.
My script:
https://pastebin.com/F6FbTQxb
Basically, it's this line in specific.
Код:
INI_String("Password",PlayerInfo[playerid][pPass], 128);
When I try to compile, I get these errors:
Код:
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
When I change the line to this:
Код:
INI_String("Password",(PlayerInfo[playerid][pPass], 128));
My new error is this:
Код:
error 017: undefined symbol "INI_String"
Please help.
Re: Issue with INI_String -
Daddy Yankee - 03.03.2018
Try changing the enum to
PHP код:
enum pInfo
{
pPass[128],
pCash,
pAdmin,
pKills,
pDeaths
}
Re: Issue with INI_String -
Stefhan - 03.03.2018
Quote:
Originally Posted by Daddy Yankee
Try changing the enum to
PHP код:
enum pInfo
{
pPass[128],
pCash,
pAdmin,
pKills,
pDeaths
}
|
You are the best, thanks!