Getting problems in solving how to save the players data. - 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: Getting problems in solving how to save the players data. (
/showthread.php?tid=516279)
Getting problems in solving how to save the players data. -
Sojo12 - 30.05.2014
I made a new Script and the problem is that it is not saving the players account and when i added some new codes it's getting some errors and i don't know how ot fix them.I'd find them but did not get any help.
Код:
C:\Users\HACKIFYOUCAN\Desktop\Freeroam\gamemodes\FF.pwn(274) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Users\HACKIFYOUCAN\Desktop\Freeroam\gamemodes\FF.pwn(274) : warning 215: expression has no effect
C:\Users\HACKIFYOUCAN\Desktop\Freeroam\gamemodes\FF.pwn(274) : error 001: expected token: ";", but found "]"
C:\Users\HACKIFYOUCAN\Desktop\Freeoroam\gamemodes\FF.pwn(274) : error 029: invalid expression, assumed zero
C:\Users\HACKIFYOUCAN\Desktop\Freeoram\gamemodes\FF.pwn(274) : fatal error 107: too many error messages on one line
Line:
Код:
forward loadaccount_user(playerid, name[], value[]); //forwarding a new function to load user's data
public loadaccount_user(playerid,name[],value[])
{
//Line INI_Int("Password",PlayerInfo[playerid][pPass]);
Thanks.
Re: Getting problems in solving how to save the players data. -
R0 - 30.05.2014
Under playerinfo,change pPass to
And change this line that gets error to:
pawn Код:
INI_String("Password", PlayerInfo[playerid][Pass],128);
And seems like it must be pInfo instead of PlayerInfo
Re: Getting problems in solving how to save the players data. -
Konstantinos - 30.05.2014
I guess your array is
pInfo or whatever you called it and
PlayerInfo is the name of the enum.
Re: Getting problems in solving how to save the players data. -
Sojo12 - 30.05.2014
Quote:
Originally Posted by Konstantinos
I guess your array is pInfo or whatever you called it and PlayerInfo is the name of the enum.
|
Yes it is.What should i do next?
Re: Getting problems in solving how to save the players data. -
Konstantinos - 30.05.2014
Use "pInfo" then for the array: