30.11.2012, 23:14
Someone please tell me whats wrong with this code. Im familiar with PAWN and the codes, but im still new to some.
I get the Error : error 033:array must be indexed(variable"mage")
I get the Error : error 033:array must be indexed(variable"mage")
Код:
new mage[999]; if(PlayerInfo[targetid][pMID] == 1) {mage = 32} else if(PlayerInfo[targetid][pMID] == 2) {mage = 26} else if(PlayerInfo[targetid][pMID] == 3) {mage = 21} else if(PlayerInfo[targetid][pMID] == 4) {mage = 36} else if(PlayerInfo[targetid][pMID] == 5) {mage = 23} else if(PlayerInfo[targetid][pMID] == 6) {mage = 22} else if(PlayerInfo[targetid][pMID] == 7) {mage = 30} else if(PlayerInfo[targetid][pMID] == 8) {mage = 20} else if(PlayerInfo[targetid][pMID] == 9) {mage = 29} else if(PlayerInfo[targetid][pMID] == 10) {mage = 25}