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


Messages In This Thread
Problem with DUDB - by SpiderPork - 27.07.2009, 16:44
Re: Problem with DUDB - by SpiderPork - 28.07.2009, 11:41

Forum Jump:


Users browsing this thread: 2 Guest(s)