SA-MP Forums Archive
1 error on compile N00b trying hard not to annoy! - 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: 1 error on compile N00b trying hard not to annoy! (/showthread.php?tid=187030)



1 error on compile N00b trying hard not to annoy! - macmac - 31.10.2010

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


Re: 1 error on compile N00b trying hard not to annoy! - The_Moddler - 31.10.2010

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


Re: 1 error on compile N00b trying hard not to annoy! - Seven. - 31.10.2010

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



Re: 1 error on compile N00b trying hard not to annoy! - macmac - 31.10.2010

Wow that was quick!

A BIG THANK YOU

It compiled ok, i'll test tomorrow

Best

Mac


Re: 1 error on compile N00b trying hard not to annoy! - macmac - 31.10.2010

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


Re: 1 error on compile N00b trying hard not to annoy! - Mike_Peterson - 31.10.2010

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


Re: 1 error on compile N00b trying hard not to annoy! - macmac - 31.10.2010

Many thanks for all your help guys....


Re: 1 error on compile N00b trying hard not to annoy! - The_Moddler - 31.10.2010

If you want performance switch to djson.


Re: 1 error on compile N00b trying hard not to annoy! - macmac - 31.10.2010

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