Register/Login System Error - 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: Register/Login System Error (
/showthread.php?tid=397767)
Register/Login System Error -
Saiph - 06.12.2012
I have 4 errors in one line, but i dont understand the error !
Код:
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\gamemodes\test_server.pwn(41) : error 001: expected token: ")", but found "["
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\gamemodes\test_server.pwn(41) : warning 215: expression has no effect
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\gamemodes\test_server.pwn(41) : error 001: expected token: ";", but found "]"
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\gamemodes\test_server.pwn(41) : error 029: invalid expression, assumed zero
C:\Users\User\Documents\GTA San Andreas User Files\SAMP\gamemodes\test_server.pwn(41) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
forward LoadAccount_user(playerid, name[], value[]);
public LoadAccount_user(playerid, name[], value[])
{
INI_String("Password",pInfo[playerid][Pass],129);
INI_Int("Score",pInfo[playerid][Score]);
INI_Int("Money",pInfo[playerid][Money]);
INI_Int("AdminLevel",pInfo[playerid][AdminLevel]);
INI_Int("VIPLevel",pInfo[playerid][VIPLevel]);
INI_Int("Kills",pInfo[playerid][Kills]);
INI_Int("Deaths",pInfo[playerid][Deaths]);
return 1;
}
Line (41)
pawn Код:
INI_String("Password",pInfo[playerid][Pass],129);
Re: Register/Login System Error -
LarzI - 06.12.2012
Show us line 1-40, please (upload to pastebin.com).
Re: Register/Login System Error -
Konstantinos - 06.12.2012
Password is a string, not an integer. Go to your enum and change
pawn Код:
enum info
{
Pass, // <-- this
// rest;
}
TO
pawn Код:
enum info
{
Pass[ 129 ], // <-- to this
// rest;
}
Re: Register/Login System Error -
Saiph - 06.12.2012
Oh, Thanks for pointing that out !
- compiled perfectly ~