DINI Problem.
#1

Hello guys.. I have noticed that when I use The DINI Include in my GAMEMODE , it gives me the following errors+warnings.

pawn Код:
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(75) : error 021: symbol already defined: "strtok"
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(90) : error 047: array sizes do not match, or destination array is too small
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(134) : error 021: symbol already defined: "isNumeric"
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(270) : error 021: symbol already defined: "Time"
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(4515) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(4516) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(4517) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(4518) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(5625) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(5636) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(8992) : error 076: syntax error in the expression, or invalid function call
E:\GTA SAMP\VSM Company\VSM GL\gamemodes\VSMGL.pwn(9928) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


11 Errors.
And when using it in a filterscript , everything is working...What's wrong?
Reply
#2

Read the errors and you'll find out where they're coming from.
Код:
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(75) : error 021: symbol already defined: "strtok"
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(90) : error 047: array sizes do not match, or destination array is too small
E:\GTA SAMP\VSM Company\VSM GL\pawno\include\gl_common.inc(134) : error 021: symbol already defined: "isNumeric"
These 3 are coming from the include "gl_common.inc"
pawn Код:
symbol is never used: "ret_memcpy"
- You've defined "ret_memcpy" but never used it anywhere in the script.

pawn Код:
021: symbol already defined: "isNumeric"
error 021: symbol already defined: "Time"
- These have been defined twice in your script.

Though, I recommend Y_INI and not Dini.
Reply
#3

Me too.. and even when I use Y_INI it does not give me errors , I just don't know how to make a "DINI-Based" script become a Y_INI-Based" one..
Reply
#4

Well, you look over your code(OnPlayerConnect, OnPlayerDisconnect, OnDialogResponse will most likely be the 3 main callbacks where the code is) and follow a tutorial on how to make a Y_INI based login system, replacing the Dini code with the Y_INI code.
Reply
#5

Thanks Binx.
Reply
#6

Quote:
Originally Posted by Helpergood
Посмотреть сообщение
Thanks Binx.
You're welcome. And I meant "replacing the Dini code with the Y_INI code." So make sure
Reply
#7

Quote:
Originally Posted by Helpergood
Посмотреть сообщение
Me too.. and even when I use Y_INI it does not give me errors , I just don't know how to make a "DINI-Based" script become a Y_INI-Based" one..
Why don't you just shift to SQL ? It's easier to maintain!
Код:
An Y_( .ini) file : 
[tag1]
Pvar1   value1 
Pvar 2  value2
...
PvarN  valueN 

[tag2]
Pvar    value 
.
.
Equivalent SQL Tables
Код:
table_for_tag_1
sno.   Pvar1    Pvar2  .....  PvarN
0       Value1  value2  ..... ValueN
1
.
and so on....
Table_for_tag_2
Same structure as table_for_tag_1 :p
The code to transfer data can be put under main(). Don't necessarily need to use PAWN

Anyways .... Replace DINI code everywhere in your code to YINI . Mind Enums !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)