26.10.2011, 17:39
(
Последний раз редактировалось jonrb; 26.10.2011 в 18:37.
)
Hello all,
I'm encountering a strange kind of bug with my code.
Code:
Note: Money is meant to be a float, I'm using decimal currency.
Anyway, when I change "new p_money;" to "new Float:p_money;", the compiler crashes when I press compile.
Even more strangely, it compiles fine when I use the "-r" parameter while compiling (Using pawn.cfg to specify parameters, as mentioned here).
Can anybody help me?
Thanks in advance,
JonRB
I'm encountering a strange kind of bug with my code.
Code:
Код:
new Float:sx,Float:sy,Float:sz; new Float:p_money; sscanf(qry,"p|iifiiifff", pStats[playerid][atype], pStats[playerid][faction], p_money, pStats[playerid][v1], pStats[playerid][v2], pStats[playerid][kills], sx, sy, sz);
Anyway, when I change "new p_money;" to "new Float:p_money;", the compiler crashes when I press compile.
Even more strangely, it compiles fine when I use the "-r" parameter while compiling (Using pawn.cfg to specify parameters, as mentioned here).
Can anybody help me?
Thanks in advance,
JonRB