Help with a variable
#1

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 ? :@
Reply
#2

new pip[24];
format(pip, sizeof(pip), "%s", dini_Get(file, "IP"));
Reply
#3

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 :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)