Need help! - 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: Need help! (
/showthread.php?tid=154617)
Need help! -
Bumbis - 14.06.2010
I am making a purchasing flat system, with enum and all these thing
i have these errors:
pawn Код:
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 028: invalid subscript (not an array or too many subscripts): "DzInfo"
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : warning 215: expression has no effect
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : fatal error 107: too many error messages on one line
And that line:
pawn Код:
if(PlayerInfo[playerid][pDzivoklis] != 255 && strcmp(playername, DzInfo[PlayerInfo][playerid][pDzivoklis]][dzOwner], true) == 0)
Someone knows how to fix it?
Re: Need help! -
randomkid88 - 14.06.2010
pawn Код:
if(PlayerInfo[playerid][pDzivoklis] != 255 && strcmp(playername, DzInfo[PlayerInfo][playerid][pDzivoklis]][dzOwner], true) == 0)
First error: Do you have DzInfo defined? Like this:
pawn Код:
enum DzWhatever
{
// stuff in here
}
new DzInfo[MAX_PLAYERS][DzWhatever];
Second, What is this part?
pawn Код:
DzInfo[PlayerInfo][playerid][pDzivoklis]][dzOwner]
You should only have 3 sets of information when calling the enum, so it would be, for example
pawn Код:
Dzinfo[playerid][dzOwner]
Also, you have 2 "]]" after [pDzivoklis]. Try that and let me see what you have.
Re: Need help! -
Bumbis - 14.06.2010
Yes i have defined that.
pawn Код:
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 028: invalid subscript (not an array or too many subscripts): "DzInfo"
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : warning 215: expression has no effect
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : error 029: invalid expression, assumed zero
C:\DOCUME~1\User\Desktop\LVRP\GAMEMO~1\larp.pwn(25625) : fatal error 107: too many error messages on one line
Nothing changes after that