SA-MP Forums Archive
Problem 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: Problem with INI_String (/showthread.php?tid=385584)



Problem with INI_String - Maniek - 16.10.2012

PHP код:
forward Load_konto(playeridname[], value[]);
public 
Load_konto(playeridname[], value[])
{
    
INI_String("Password"PInfo[playerid][Password], 129);//<-- this is 802 line
       
INI_Int("Money"PInfo[playerid][Money]);
    return 
1;

errors:
Код:
(802) : error 001: expected token: ")", but found "["
(802) : warning 215: expression has no effect
(802) : error 001: expected token: ";", but found "]"
(802) : error 029: invalid expression, assumed zero
(802) : fatal error 107: too many error messages on one line
I don't see the mistake. I was learning how to using this y_ini system but I heve only big problem with INI_String function. Help.


Re: Problem with INI_String - caki - 16.10.2012

Loading
PHP код:
INI_String("Password"PInfo[playerid][Password],129); 
Enum
PHP код:
Password[129], 
Saving
INI_WriteString(playerFile, "Password", HashPass);
PHP код:
INI_WriteString(playerFile"Password"); 



Re: Problem with INI_String - Maniek - 16.10.2012

It works! Thank you very much!


Re: Problem with INI_String - caki - 16.10.2012

No problem anytime