severhelp
#1

iI did a login /register system useing a tutorialand i keep getting errors.
this is the tutorial: https://sampforum.blast.hk/showthread.php?tid=273088
and this is what I have
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Password",PlayerInfo[playerid][pPass]);
INI_Int("Cash",PlayerInfo[playerid][pCash]);
INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
INI_Int("Kills",PlayerInfo[playerid][pKills]);
INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
return 1;
}
and when I comepile I get this
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(94) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(94) : warning 215: expression has no effect
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(94) : error 001: expected token: ";", but found "]"
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(94) : error 029: invalid expression, assumed zero
C:\Users\Michael C\Desktop\4-21-2012 project\gamemodes\NewRoleplay.pwn(94) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

line 94 is INI_Int("Password",PlayerInfo[playerid][pPass]);
Reply


Messages In This Thread
severhelp - by Michael_Cuellar - 26.04.2012, 20:35
Re: severhelp - by Tom1412 - 26.04.2012, 21:40
Re: severhelp - by Michael_Cuellar - 26.04.2012, 21:51
Re: severhelp - by Michael_Cuellar - 26.04.2012, 21:56
Re: severhelp - by Guest9328472398472 - 26.04.2012, 23:36

Forum Jump:


Users browsing this thread: 3 Guest(s)