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

copy INI_Int("Cash",PlayerInfo[playerid][pCash]);

and paste it instead of the INI_Int("Password",PlayerInfo[playerid][pPass]);
and just change the cash to password and pcash to ppass

need anymore help add me on skype hornyboy1412
Reply
#3

hornyboy? O.o lmfao kk ill try it
Reply
#4

and that didnt do anything -_- I Don't know what to do /;
Reply
#5

Slide me Line 94 from your script.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)