VarMad - help meh! :D - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: VarMad - help meh! :D (
/showthread.php?tid=257063)
VarMad - help meh! :D -
Seven_of_Nine - 23.05.2011
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?
Re: VarMad - help meh! :D -
Vince - 23.05.2011
What's the point of getting the value as a string and converting it to integer later when you can just use
dini_Int?
Re: VarMad - help meh! :D -
Seven_of_Nine - 23.05.2011
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.