Code - 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)
+--- Thread: Code (
/showthread.php?tid=496126)
Deleted -
LustcheR - 20.02.2014
Deleted
Re: Code -
UnknownOwner - 20.02.2014
Remove the last bracket
Re: Code -
Konstantinos - 20.02.2014
pawn Код:
DOF2_SetInt(xPFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank", DOF2_GetInt(xPFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank") + DOF2_GetInt(VFile(vehicleid), "CarPrice"));
Re: Code -
LustcheR - 20.02.2014
Quote:
Originally Posted by UnknownOwner
Remove the last bracket
|
Quote:
Originally Posted by Konstantinos
pawn Код:
DOF2_SetInt(xPFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank", DOF2_GetInt(xPFile(DOF2_GetString(VFile(vehicleid), "CarOwner")), "MoneyBank") + DOF2_GetInt(VFile(vehicleid), "CarPrice"));
|
new error -_-
PHP код:
error 035: argument type mismatch (argument 1)
PHP код:
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank", DOF2_GetInt(DOF2_GetInt(VFile(vehicleid), "CarOwned"), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice"));
Re: Code -
Konstantinos - 21.02.2014
pawn Код:
DOF2_SetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank", DOF2_GetInt(PFile(DOF2_GetInt(VFile(vehicleid), "CarOwned")), "MoneyBank") + DOF2_GetInt(VFile(vehicleid),"CarPrice"));
I see, it returned integer instead of array (file path).