14.04.2011, 02:04
tem um bug no dinheiro
no comando sacar quero proibir sacar valores negativos
qd eu tento ele
da esse erro
no comando sacar quero proibir sacar valores negativos
Код:
if(strcmp(cmd, "/sacar", true) == 0) {
format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
new checknome;
new tmp[256];
checknome = CPS_GetPlayerCheckpoint(playerid);
if(checknome == caixaeletronico1 || checknome == caixaeletronico2 || checknome == caixaeletronico3 || checknome == caixaeletronico4 || checknome == caixaeletronico5 || checknome == caixaeletronico6 || checknome == caixaeletronico7 || checknome == caixaeletronico8){
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Use /sacar [quantia].");
}
if (strfind(inputtext, "-") != -1) return SendClientMessage(playerid, Blue, "[BANCO] Vocк nгo pode sacar valores negativos!");
new valor;
valor = strval(tmp);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(dini_Int(file, "ContaBancaria") == 1){
if(dini_Int(file, "SaldoBancario") > valor-1){
format(string, sizeof(string), "(INFO) Bancos BMR RPG: Vocк sacou a quantia de R$%d.", valor);
SendClientMessage(playerid, Verde, string);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")-valor);
GivePlayerGrana(playerid, valor);
return 1;
} else {
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo tem todo este dinheiro.");
}
} else {
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo tem uma conta bancбria.");
}
} else {
SendClientMessage(playerid, Vermelho, "(ERRO) Vocк nгo estб em um Banco.");
}
}
da esse erro
Код:
C:\Documents and Settings\SAMP-SERVER\Desktop\coisas de servidor\samp03csvr_win32\pawno\mucanatal2.pwn(6476) : error 017: undefined symbol "inputtext" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.


