[ajuda]Comando
#1

Alguйm sabe como posso colocar o resultado /versaldo dentro de um textdraw
Tipo to querendo fazer um extrato quando o jogador digitar /versaldo abrir um textdraw com o resultado do saldo dele.

TextDrawCreate(626.000000, 254.000000, " ");

Comando.

Код:
if(strcmp(cmd, "/versaldo", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
new check;
check = CPS_GetPlayerCheckpoint(playerid);
GetPlayerName(playerid, aname, sizeof(aname));
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Contanobanco") == 1){
format(string, sizeof(string), "| BANCO | O seu saldo atual й %d", dini_Int(file, "SaldoBancario"));
SendClientMessage(playerid, amarelo, string);
} else {
SendClientMessage(playerid, Vermelho,"| ERRO | Vocк nгo tem uma conta bancбria.");
}
return 1;
}
Reply


Messages In This Thread
[ajuda]Comando - by lincon c - 16.10.2011, 21:26
Re: [Duvida]Comando - by [O.z]Caroline - 16.10.2011, 21:34
Re: [Duvida]Comando - by lincon c - 16.10.2011, 21:53

Forum Jump:


Users browsing this thread: 1 Guest(s)