26.03.2012, 21:05
pawn Код:
C:\Users\BruceLee\Downloads\Brasil Play City By, Dr._.THE and - Dr._.pL4yer\Brasil Reality Life\BRV\gamemodes\gm.pwn(7701) : error 017: undefined symbol "Preso"
C:\Users\BruceLee\Downloads\Brasil Play City By, Dr._.THE and - Dr._.pL4yer\Brasil Reality Life\BRV\gamemodes\gm.pwn(7701) : warning 215: expression has no effect
C:\Users\BruceLee\Downloads\Brasil Play City By, Dr._.THE and - Dr._.pL4yer\Brasil Reality Life\BRV\gamemodes\gm.pwn(7701) : error 001: expected token: ";", but found "]"
C:\Users\BruceLee\Downloads\Brasil Play City By, Dr._.THE and - Dr._.pL4yer\Brasil Reality Life\BRV\gamemodes\gm.pwn(7701) : error 029: invalid expression, assumed zero
C:\Users\BruceLee\Downloads\Brasil Play City By, Dr._.THE and - Dr._.pL4yer\Brasil Reality Life\BRV\gamemodes\gm.pwn(7701) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
if(strcmp(cmdtext, "/fianca", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
new grana;
grana = dini_Int(file, "SaldoBancario");
if(dini_Int(file, "Preso") >= 1){
if(grana > 850){
if(Preso[playerid]>= 2){
dini_IntSet(file2, "Procurado", 0);
dini_IntSet(file, "Preso",0);
dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")-Fianca);
preso[playerid] = 0;
Preso[playerid] = 0;
algemado[playerid] = 0;
SpawnPlayer(playerid);
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, Verde,"* Vocк pagou a fianзa pelo preзo de R$850 e foi solto!.");
} else {
SendClientMessage(playerid, Vermelho,"** Vocк tem que esperar pelo menos 2 minutos para pagar a fianзa.");
}
} else {
SendClientMessage(playerid, Vermelho,"** Vocк nгo tem R$850 na sua conta bancбria");
}
} else {
SendClientMessage(playerid, Vermelho,"** Vocк nгo estб preso.");
}
return 1;
}