Help with a variable - 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: Help with a variable (
/showthread.php?tid=374463)
Help with a variable -
CoDeZ - 02.09.2012
Please guys help me with this stupid variable
pawn Код:
new pip=dini_Get(file,"IP");
i get this error
Код:
error 033: array must be indexed (variable "-unknown-")
and when i tried this one
pawn Код:
new pip[24]=dini_Get(file,"IP");
i get this error
Код:
error 008: must be a constant expression; assumed zero
What to do then ? :@
Re: Help with a variable -
Kirollos - 02.09.2012
new pip[24];
format(pip, sizeof(pip), "%s", dini_Get(file, "IP"));
Re: Help with a variable -
CoDeZ - 02.09.2012
i tried this one but now it saves the variable , it doesn't destroy it
for example if pip=192.168.1.3
its always 192.168.1.3 it doesn't change from player to another :/