SA-MP Forums Archive
severhelp - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: severhelp (/showthread.php?tid=337560)



severhelp - Michael_Cuellar - 26.04.2012

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]);


Re: severhelp - Tom1412 - 26.04.2012

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


Re: severhelp - Michael_Cuellar - 26.04.2012

hornyboy? O.o lmfao kk ill try it


Re: severhelp - Michael_Cuellar - 26.04.2012

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


Re: severhelp - Guest9328472398472 - 26.04.2012

Slide me Line 94 from your script.