SA-MP Forums Archive
Problem with DUDB - 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: Problem with DUDB (/showthread.php?tid=88569)



Problem with DUDB - SpiderPork - 27.07.2009

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.


Re: Problem with DUDB - SpiderPork - 28.07.2009

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