SA-MP Forums Archive
Small Problem With 1 Script Line - 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: Small Problem With 1 Script Line (/showthread.php?tid=206633)



Small Problem With 1 Script Line - lewismichaelbbc - 04.01.2011

Below is the line where i am having the errors:

Line 25406:
pawn Код:
if(PlayerInfo[playerid][pPbiskey] >= 100 && strcmp(sendername, SBizzInfo[PlayerInfo[playerid][pPbiskey]-100][sbOwner], true) == 0)
Here are the errors:

pawn Код:
C:\Users\Lewis\Desktop\sarpbiz.pwn(25406) : error 017: undefined symbol "SBizzInfo"
C:\Users\Lewis\Desktop\sarpbiz.pwn(25406) : warning 215: expression has no effect
C:\Users\Lewis\Desktop\sarpbiz.pwn(25406) : error 001: expected token: ";", but found "]"
C:\Users\Lewis\Desktop\sarpbiz.pwn(25406) : error 029: invalid expression, assumed zero
C:\Users\Lewis\Desktop\sarpbiz.pwn(25406) : fatal error 107: too many error messages on one line
Does anyone know what i can do to fix this?


Re: Small Problem With 1 Script Line - Sascha - 04.01.2011

as said in the error:
SBizzInfo is not defined... if you have it defined, check whether all of those [ ] 's are correct


Re: Small Problem With 1 Script Line - Lorenc_ - 04.01.2011

^ basicly yea, create a enum referring to it, and just make an array.
Код:
enum PLAYERDATA
{
 BIZ
}
new gplayerData[MAX_PLAYERS][PLAYERDATA];
Thats an example. You might want to change it.. How ever you want..