SA-MP Forums Archive
[Pedido] Comando Converter Moeda - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Comando Converter Moeda (/showthread.php?tid=527063)



Comando Converter Moeda - CromadoH - 20.07.2014

Eu Uso Duas Moedas No Game

A:

Money - Dinheiro Verde [ORIGINAL DO JOGO]

REAL - Moeda Secundaria

Eu Queria Um Comando Que Converte-se Real Em Money Tipo 10 Reais Vire 5 Dolares EX: 1000Reais - 500Dolares.

Ou Seja O Real Vale Menos Que O Money Se Alguem Puder Ajudar VLW!.

/converterreal [ Valor Minimo: 10$ - 10000$$]

Ex:

Vocк Converteu 100Reais Em 50 Dolares.


Re: Comando Converter Moeda - zSuYaNw - 20.07.2014

pawn Код:
new Real;
Real = (GetPlayerMoney(playerid) / 2);


printf("Real do jogador й: %d", Real);