23.10.2010, 12:37
I'm working on dynamic family system and problem is when i compile i get this:
here is that script:
Код:
C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : warning 213: tag mismatch C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : error 033: array must be indexed (variable "rtext") C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : error 029: invalid expression, assumed zero C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : warning 215: expression has no effect C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : error 001: expected token: ";", but found "]" C:\Users\Borna\Documents\SAMP\WTF\gamemodes\23listopad.pwn(6493) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)//Family1 { if(PlayerInfo[targetid][pRank] == 1) { rtext = Family1Info[targetid][FamilyRank1]; } else if(PlayerInfo[targetid][pRank] == 2) { rtext = Family1Info[targetid][FamilyRank2]; } else if(PlayerInfo[targetid][pRank] == 3) { rtext = Family1Info[targetid][FamilyRank3]; } else if(PlayerInfo[targetid][pRank] == 4) { rtext = Family1Info[targetid][FamilyRank4]; } else if(PlayerInfo[targetid][pRank] == 5) { rtext = Family1Info[targetid][FamilyRank5]; } else if(PlayerInfo[targetid][pRank] == 6) { rtext = Family1Info[targetid][FamilyRank6]; } else if(PlayerInfo[targetid][pRank] == 7) { rtext = Family1Info[targetid][FamilyRank7]; } }