20.06.2014, 23:34
Ok, so these are the four errors I get when I try to compile.
The line of code is located under "stock PayDay(i)"
And the line of code is, "SendClientMessage(i,COLOR_LIGHTBLUE, InfoMSG[randMSG]);"
Can anyone tell me what is wrong? :c
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 028: invalid subscript (not an array or too many subscripts): "InfoMSG"
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : warning 215: expression has no effect
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 001: expected token: ";", but found "]"
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 029: invalid expression, assumed zero
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : fatal error 107: too many error messages on one line
The line of code is located under "stock PayDay(i)"
And the line of code is, "SendClientMessage(i,COLOR_LIGHTBLUE, InfoMSG[randMSG]);"
Can anyone tell me what is wrong? :c
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 028: invalid subscript (not an array or too many subscripts): "InfoMSG"
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : warning 215: expression has no effect
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 001: expected token: ";", but found "]"
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : error 029: invalid expression, assumed zero
C:\Users\Roland\Desktop\saints\hrp.pwn(11803) : fatal error 107: too many error messages on one line
Код:
stock PayDay(i) { new string[128]; PlayerInfo[i][pPayDay] = 0; if(PlayerInfo[i][pJob] >= 1) { PlayerInfo[i][pJobHours]++; } if(PlayerInfo[i][pLevel] == 1) { SendClientMessage(i,COLOR_WHITE,"{7DAEFF}NEWBIE INFO{FFFFFF}: Your level is the hours you have been playing, you are now level 2"); } if(PlayerInfo[i][pLevel] <= 9) { new randMSG = random(sizeof(InfoMSG)); PlayerInfo[i][pBank] += 1000;//Not using pCheque because newbie money should not be taxed. SendClientMessage(i,COLOR_WHITE,"{7DAEFF}NEWBIE INFO{FFFFFF}: You have recieved an extra $1000 because you are new to the server."); SendClientMessage(i,COLOR_LIGHTBLUE, InfoMSG[randMSG]); }