Expected token
#1

Im getting expected token ; but found ] in this line:

pawn Код:
format(nrs, sizeof(nrs), "Score: ~r~%02i/%02i", GetPlayerScore(i), gRank[(Player[i][Rank] + 1) >= sizeof(gRank)) ? (sizeof(gRank)) : (Player[i][Rank] + 1)][rankScore]);
Reply
#2

Quote:

format(nrs, sizeof(nrs), "Score: ~r~%02i/%02i", GetPlayerScore(i), gRank[(Player[i][Rank] + 1) >= sizeof(gRank)) ? (sizeof(gRank)) : (Player[i][Rank] + 1)[rankScore]);

Try dat
Reply
#3

error 001: expected token: "]", but found ")"
error 029: invalid expression, assumed zero
Reply
#4

Код:
format(nrs, sizeof(nrs), "Score: ~r~%02i/%02i", GetPlayerScore(i), (gRank[(Player[i][Rank] + 1)] >= sizeof(gRank)) ? (sizeof(gRank)) : (Player[i][Rank] + 1)][rankScore]);
EDIT: That'll fix an error. But I noticed something with your code.

PHP код:
(sizeof(gRank)) : (Player[i][Rank] + 1)][rankScore
The else part of this code doesn't make any sense. What're you trying to do here?
Reply
#5

Same error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)