dini_int. - 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: dini_int. (
/showthread.php?tid=562097)
dini_int. -
CJoao - 06.02.2015
Boas tenho um problema ou ler o preзo do veiculo que esta no ficheiro
Код:
dini_Int(accstring, "Preco"); // o preзo e 25000
Код:
if(PlayerInfo[playerid][pGold] >= 1)
{
new string2[256];
new precocarros = dini_Int(accstring, "Preco");
format(string2, sizeof(string2), "Nome do veiculo: %s(%d)\nPreзo: %dЂ(Preзo Gold)",VehicleTittle[(model)-400], model, precocarros * 75 / 100);
ShowPlayerDialog(playerid,comprarvei2, 0, "Confimar Compra", string2, "Comprar", "Sair");
return 1;
}
mas so aparece "187" em vez de "18750"
Re: dini_int. -
ipsLuan - 06.02.2015
Tente colocar um tamanho na variбvel.
pawn Код:
new precocarros[10] = dini_Int(accstring, "Preco");
Re: dini_int. -
CJoao - 06.02.2015
Код:
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24124) : error 008: must be a constant expression; assumed zero
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24126) : error 033: array must be indexed (variable "precocarros")
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24133) : error 033: array must be indexed (variable "precocarros")
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24147) : error 006: must be assigned to an array
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24156) : error 033: array must be indexed (variable "precocarros")
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24163) : error 035: argument type mismatch (argument 2)
C:\Users\MPatch\Desktop\Server\gamemodes\RP.pwn(24177) : error 006: must be assigned to an array
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
7 Errors.
Re: dini_int. -
ipsLuan - 06.02.2015
Manda as linhas do erro.