Getting problems in solving how to save the players data.
#1

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.
Reply
#2

Under playerinfo,change pPass to
pawn Код:
pPass[128],
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
Reply
#3

I guess your array is pInfo or whatever you called it and PlayerInfo is the name of the enum.
Reply
#4

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?
Reply
#5

Use "pInfo" then for the array:
pawn Код:
pInfo[playerid][pPass]
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)