[Ajuda] divisao de numeros
#1

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;
}
Reply


Messages In This Thread
divisao de numeros - by iTzDemon - 27.10.2013, 20:18
Re: divisao de numeros - by PT - 27.10.2013, 20:24
Re: divisao de numeros - by iTzDemon - 27.10.2013, 20:26
Re: divisao de numeros - by PT - 27.10.2013, 20:30
Re: divisao de numeros - by unamed - 27.10.2013, 20:32
Re: divisao de numeros - by bruxo00 - 27.10.2013, 20:56
Re: divisao de numeros - by BielCOP - 27.10.2013, 20:56
Re: divisao de numeros - by iTzDemon - 27.10.2013, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)