10.11.2013, 14:03
Can some one explain me how do i get the players money and score and put them in the database?
i am using konstatinos sqlite tutorial...
errors:
I read the tutorial completely but i dont understand it.
i am using konstatinos sqlite tutorial...
errors:
pawn Код:
(372) : error 022: must be lvalue (non-constant)
(376) : error 022: must be lvalue (non-constant)
pawn Код:
USER_MONEY = GetPlayerMoney(playerid); //372
db_get_field_assoc(Result, "money", Query, 20);
User[playerid][USER_MONEY] = strval(Query);
USER_SCORE = GetPlayerScore(playerid); //376
db_get_field_assoc(Result, "score", Query, 100);
User[playerid][USER_SCORE] = strval(Query);