1 error on compile N00b trying hard not to annoy!
#1

hey guys,

I'm really trying to get my head around all this and any help would be great.

I'm getting this error when I compile my old freeroam script


Код:
error 021: symbol already defined: "dini_FloatSet"
the line in the script is:

Код:
}

public dini_FloatSet(filename[],key[],Float:value) {
   new valuestring[MAX_STRING];
   format(valuestring,sizeof(valuestring),"%f",value);
   return dini_Set(filename,key,valuestring);
}
Any ideas you scripting gods?

I haven't got a clue but i'm willing to learn

best

Mac
Reply
#2

It gives you th error because you already defined it.. so just delete it.
Reply
#3

There is already a function in the dini include
pawn Код:
dini_FloatSet(file, "??", ?);
Reply
#4

Wow that was quick!

A BIG THANK YOU

It compiled ok, i'll test tomorrow

Best

Mac
Reply
#5

Seven,

Quote:
Originally Posted by Seven.
Посмотреть сообщение
There is already a function in the dini include
pawn Код:
dini_FloatSet(file, "??", ?);
So is it best to delete it in my freeroam.pwn or should I edit the dini.inc?

Whats the best way to do it? I don't want start with the wrong solution?

Questions, Questions....

Best

Mac
Reply
#6

Delete it out of your script... dont edit the dini.inc
Reply
#7

Many thanks for all your help guys....
Reply
#8

If you want performance switch to djson.
Reply
#9

I have no idea what that is yet but i'll look into it!

New problem:

The modified script now loads ok on the server but if I walk into any of the big red circles in buildings (that allow you to buy them) the server crashes.

I've pasted the freeroam.pwn on pastebin here: http://pastebin.com/unL7LQng

I'd be very grateful if anyone can tell me why its not letting me buy and crashing the server.

I'm using an old modified Prorail freeroam script but I don't have the original pwn file.

I found a version that is very similar on the web and thats the one I've put on pastebin.

(I don't suppose there is a way to de-compile the one I have that works?)

Best

Mac
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)