Error help
#1

I have a problem with this code. How to fix it?
Code:
if(strlen((typ == 0) ? (FracRang[uid][i]) : (FamRang[uid][i])) < 2)

format(lStr, 256, "%s%s, ", lStr, (typ == 0) ? (FracRang[uid][i]) : (FamRang[uid][i]));
When he wants to remove FamRang
Code:
if(strlen((typ == 0) ? (FracRang[uid][i]))

format(lStr, 256, "%s%s, ", lStr, (typ == 0) ? (FracRang[uid][i]));
This error pops up
Code:
error 001: expected token: ":", but found ")"
error 001: expected token: ":", but found ")"
error 033: array must be indexed (variable "FracRang")
Reply
#2

This should work.
Code:
if((strlen(typ == 0) ? (FracRang[uid][i]) : (FamRang[uid][i])) < 2)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)