Error help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error help (
/showthread.php?tid=665403)
Error help -
KamilPolska - 02.04.2019
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")
Re: Error help -
Marshas - 02.04.2019
This should work.
Code:
if((strlen(typ == 0) ? (FracRang[uid][i]) : (FamRang[uid][i])) < 2)