23.08.2014, 16:36
Bom meu gm tem um sistema de cash e eu estava tentado criar um sistema onde o player trocava cash por dinheiro
So que eu n sei se isto esta certo e se estiver como que eu passarei para dialog
Mas tipo o player que tivesse cash ia la na dialog e digitava quanto de cash iria trocar e a cada 100.000 cash e 1kk de dinheito
ou seja a cada 10 cash e 1 dinheiro
alg pode me ajudar ?
+rep
So que eu n sei se isto esta certo e se estiver como que eu passarei para dialog
Mas tipo o player que tivesse cash ia la na dialog e digitava quanto de cash iria trocar e a cada 100.000 cash e 1kk de dinheito
ou seja a cada 10 cash e 1 dinheiro
alg pode me ajudar ?
+rep
pawn Код:
new value = strval(inputtext);
if(value < 0 || value > Player[playerid][CashVerde])
SendClientMessage(playerid, COLOR_RED,"[ERRO] Quantia invбlida.");
else
{
player[i][Cashverde] -- value;
GivePlayerGP(giveid, value);
new str[128];
format(str,128,"[PH]Vocк Trocou cash por dinheiro", value);
SendClientMessage(playerid, COLOR_GOLD,str);
}