04.08.2012, 03:04
Hello,
Run time error 11: "Devide by zero"
I've managed to find the problem in my script which leads to these lines;
The Ratio -> %.2fm code tends to appear as an 'unknown command' ?
I have used new Float:kr; but doesn't work.
Any suggestions would be appreciated. Thanks
Run time error 11: "Devide by zero"
I've managed to find the problem in my script which leads to these lines;
Код:
new Float:kr; kr = (g_playerdata[pid][KILLS]/g_playerdata[pid][DEATHS]); format(string, sizeof(string), "{EBD113}(Kills/Deaths) {FFFFFF}Kills -> %i .. Drive-by kills - > %i .. Deaths -> %i .. Suicides -> %i .. Ratio -> %.2fm", g_playerdata[pid][KILLS], g_playerdata[pid][DBKILLS], g_playerdata[pid][DEATHS], g_playerdata[pid][SUICIDES],kr); SendPlayerInfo(playerid, string);
I have used new Float:kr; but doesn't work.
Any suggestions would be appreciated. Thanks