04.06.2012, 22:32
Estou com uns erros aqui .. alguem me ajuda? Cуdigo:
erros;
pawn Код:
if(dialogid == XXXXX)
{
if(response)
{
if(strlen(inputtext))
{
new test[128];
format(test, sizeof(test), "/XXXXX/XXXXX.ini");
new oi = dini_Int(test, "XXXXX");
format(string, sizeof(string), "{FFFAFA}O Saldo atual do cofre й: {32CD32}%dR$\n{FFFAFA}Digite a quantia a sacar:", oi);
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, CPublicoSacar, DIALOG_STYLE_INPUT, "Cofre XXXXX - 'Sacar'", string, "Sacar", "Fechar");
GivePlayerMoneyEx(playerid, inputtext);
format(string, sizeof(string), "* Vocк sacou %dR$ do Cofre XXXXX.", inputtext);
SendClientMessage(playerid, Verde, string);
dini_IntSet(test, "XXXXX", oi - inputtext);
}
}
}
pawn Код:
C:\Users\Vitor\Desktop\Virtual World\gamemodes\Virtual.pwn(23269) : error 035: argument type mismatch (argument 2)
C:\Users\Vitor\Desktop\Virtual World\gamemodes\Virtual.pwn(23272) : error 033: array must be indexed (variable "inputtext")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.