INI_String problem - 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 problem (
/showthread.php?tid=581469)
INI_String problem -
Lirbo - 13.07.2015
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_String("Password",DB[playerid][Password], 129);
return 1;
}
C:\Users\Lirbo\Desktop\GRRP\gamemodes\GRRPFixed.pw n(371) : error 001: expected token: ")", but found "["
C:\Users\Lirbo\Desktop\GRRP\gamemodes\GRRPFixed.pw n(371) : warning 215: expression has no effect
C:\Users\Lirbo\Desktop\GRRP\gamemodes\GRRPFixed.pw n(371) : error 001: expected token: ";", but found "]"
C:\Users\Lirbo\Desktop\GRRP\gamemodes\GRRPFixed.pw n(371) : error 029: invalid expression, assumed zero
C:\Users\Lirbo\Desktop\GRRP\gamemodes\GRRPFixed.pw n(371) : fatal error 107: too many error messages on one line
PHP код:
enum Database
{
Password
}
new DB[MAX_PLAYERS][Database];
Re: INI_String problem -
TonyVk - 13.07.2015
try this:
Код:
enum Database
{
Password[128]
}
new DB[MAX_PLAYERS][Database];
Re: INI_String problem -
Lirbo - 13.07.2015
Quote:
Originally Posted by TonyVk
try this:
Код:
enum Database
{
Password[128]
}
new DB[MAX_PLAYERS][Database];
|
Working, ty <3