20.02.2014, 22:48
(
Последний раз редактировалось LustcheR; 22.10.2014 в 20:13.
)
Deleted
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank"), DOF2_GetInt(DOF2_GetInt(VFile(vehicleid), "CarOwned"), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice"));
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank", DOF2_GetInt(DOF2_GetInt(VFile(vehicleid), "CarOwned"), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice")); |
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank"), DOF2_GetInt(DOF2_GetInt(VFile(vehicleid), "CarOwned"), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice"); |
Код:
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank"), DOF2_GetInt(DOF2_GetInt(VFile(vehicleid), "CarOwned"), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice")); |
warning 202: number of arguments does not match definition
error 035: argument type mismatch (argument 1)
error 029: invalid expression, assumed zero
warning 215: expression has no effect
He added a parentheses, just to clarify. (underlined)
Also, it appeared you had an extra parentheses so I removed it. (bold) |
warning 202: number of arguments does not match definition
error 035: argument type mismatch (argument 1)
warning 215: expression has no effect
In your first post, you say "CarOwned" and now "CarOwner". For the "CarOwner" which is string, use DOF2_GetString.
|
error 035: argument type mismatch (argument 1)
DOF2_SetInt(PFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank", DOF2_GetInt(xPFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice"));