Problem with DUDB
#1

I'm trying to save some positions, which are stored in variables to a file. There are more of those "variable"s, so I made a loop.
I want to make one file per variable.
It's not going really well.
This is my code:

pawn Код:
3787   StorePlaces()
3788   {
3789       for(new variable = 0; variable < MAX_VARIABLES; variable++)
3790       {
3791         udb_Create(variable, "something");
3792         dUserSetFLOAT(variable).("X", VariableInfo[variable][X]);
3793         dUserSetFLOAT(variable).("Y", VariableInfo[variable][Y]);
3794         dUserSetFLOAT(variable).("Z", VariableInfo[variable][Z]);
3795       }
3796       return 1;
3797   }
P.S. I have changed the real variables to 'variable', just ignore it.

And I get these errors:

Код:
(3791): error 035: argument type mismatch (argument 1)
(3792): error 035: argument type mismatch (argument 1)
(3793): error 035: argument type mismatch (argument 1)
(3794): error 035: argument type mismatch (argument 1)
Thanks in advance.
Reply
#2

Bump...
Should I use the normal file functions, since it's not for players, or do you think I should use DUDB/Dini?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)