SA-MP Forums Archive
ladmin 4 errors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ladmin 4 errors (/showthread.php?tid=255662)



ladmin 4 errors - misho1 - 16.05.2011

i have 4 errors when i compile help me plz
Код:
F:\FreeRoam World\filterscripts\ladmin2.pwn(695) : error 028: invalid subscript (not an array or too many subscripts): "LoggedIn"
F:\FreeRoam World\filterscripts\ladmin2.pwn(695) : warning 215: expression has no effect
F:\FreeRoam World\filterscripts\ladmin2.pwn(695) : error 001: expected token: ";", but found "]"
F:\FreeRoam World\filterscripts\ladmin2.pwn(695) : error 029: invalid expression, assumed zero
F:\FreeRoam World\filterscripts\ladmin2.pwn(695) : fatal error 107: too many error messages on one line

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


4 Errors.
http://pastebin.com/YBVjXGSK

help me plz fast


Re: ladmin 4 errors - misho1 - 16.05.2011

help plz


Re: ladmin 4 errors - sansko - 16.05.2011

sorry i take a llok


Re: ladmin 4 errors - Markx - 16.05.2011

Show line 695...


Re: ladmin 4 errors - lowrida018 - 16.05.2011

That means it can't read though's part's of the script.

Or they have no effect.


Re: ladmin 4 errors - misho1 - 16.05.2011

Quote:
Originally Posted by Markx
Посмотреть сообщение
Show line 695...
pawn Код:
LoggedIn[playerid] = 0;



Re: ladmin 4 errors - jamesbond007 - 16.05.2011

show like 694 also u havent edited out anything did u?


Re: ladmin 4 errors - sansko - 16.05.2011

you know that LoggedIn is set twice to 0 don't you
pawn Код:
LoggedIn[playerid] = 0;//here
        PlayerInfo[playerid][Deaths] = 0;
        PlayerInfo[playerid][Kills] = 0;
        PlayerInfo[playerid][Jailed] = 0;
        PlayerInfo[playerid][Frozen] = 0;
        PlayerInfo[playerid][Level] = 0;
        PlayerInfo[playerid][LoggedIn] = 0;//and here



Re: ladmin 4 errors - misho1 - 16.05.2011

the same 4 errors


Re: ladmin 4 errors - sansko - 16.05.2011

try this
pawn Код:
PlayerInfo[playerid][Deaths] = 0;
        PlayerInfo[playerid][Kills] = 0;
        PlayerInfo[playerid][Jailed] = 0;
        PlayerInfo[playerid][Frozen] = 0;
        PlayerInfo[playerid][Level] = 0;
        PlayerInfo[playerid][LoggedIn] = 0;
instead of this
pawn Код:
LoggedIn[playerid] = 0;//delete this line
        PlayerInfo[playerid][Deaths] = 0;
        PlayerInfo[playerid][Kills] = 0;
        PlayerInfo[playerid][Jailed] = 0;
        PlayerInfo[playerid][Frozen] = 0;
        PlayerInfo[playerid][Level] = 0;
        PlayerInfo[playerid][LoggedIn] = 0;//and here