VarMad - help meh! :D
#1

pawn Код:
config[3] = dini_Get(CONFIG, "MaxTeles");
        MaxTeles = strval(config[3]);
        new Text3D:Temp[MaxTeles]; //This line
returns me:
pawn Код:
C:\Users\\samp03csvr_win32\filterscripts\teleporteditor.pwn(42) : error 008: must be a constant expression; assumed zero
C:\Users\\samp03csvr_win32\filterscripts\teleporteditor.pwn(42) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\\samp03csvr_win32\filterscripts\teleporteditor.pwn(42) : error 036: empty statement
C:\Users\\samp03csvr_win32\filterscripts\teleporteditor.pwn(42) : fatal error 107: too many error messages on one line
wtf?
Reply
#2

What's the point of getting the value as a string and converting it to integer later when you can just use dini_Int?
Reply
#3

I didn't wanna create a new variable to that integer, (config is [3+1][300]), so I did with strval.

Btw, I solved it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)