Small Problem With 1 Script Line
#1

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?
Reply
#2

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

^ 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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)