27.10.2013, 20:18
boas, eu tenho um comando que da crash quando faz a divisao. algumas dicas?
Код:
CMD:profile(playerid) { print("1"); new string[1040]; print("2"); format(string,sizeof(string),"Nome: ~w~%s",GetPlayerNameEx(playerid)); print("3"); TextDrawSetString(STNome[playerid],string); print("4"); format(string,sizeof(string),"Kills: ~w~%i",PlayerInfo[playerid][Kills]); print("5"); TextDrawSetString(STKills[playerid],string); print("6"); format(string,sizeof(string),"Deaths: ~w~%i",PlayerInfo[playerid][Deaths]); print("7"); TextDrawSetString(STDeaths[playerid],string); print("8"); format(string,sizeof(string),"K/D: ~w~%d",(PlayerInfo[playerid][Kills] / PlayerInfo[playerid][Deaths])); // aqui que da crash print("9"); TextDrawSetString(STKD[playerid],string); print("10"); format(string,sizeof(string),"Score: ~w~%i",GetPlayerScore(playerid)); print("11"); TextDrawSetString(STScore[playerid],string); print("12"); TextDrawShowForPlayer(playerid,STF[playerid]); print("13"); TextDrawShowForPlayer(playerid,STTitulo[playerid]); print("14"); TextDrawShowForPlayer(playerid,STNome[playerid]); print("15"); TextDrawShowForPlayer(playerid,STKills[playerid]); print("16"); TextDrawShowForPlayer(playerid,STDeaths[playerid]); print("17"); TextDrawShowForPlayer(playerid,STKD[playerid]); print("18"); TextDrawShowForPlayer(playerid,STScore[playerid]); print("19"); TextDrawShowForPlayer(playerid,STFechar[playerid]); print("20"); TextDrawShowForPlayer(playerid,STDados[playerid]); print("21"); SelectTextDraw(playerid, 0x2CF52CFF); print("22"); return 1; }