[Ajuda] Pagamento Randфmico
#7

Quote:
Originally Posted by Cidiei
Посмотреть сообщение
Troque a antiga public por essa

pawn Код:
public DarGranaDescarregar(playerid){
    new random = random(sizeof(GranaDescarregar));
    GivePlayerMoney(playerid,GranaDescarregar[random]);
    return 1;
}
------------------------------------------RPG.pwn(9567) : warning 219: local variable "random" shadows a variable at a preceding level
------------------------------------------RPG.pwn(9567) : error 012: invalid function call, not a valid address
------------------------------------------RPG.pwn(9567) : error 001: expected token: ";", but found "sizeof"
------------------------------------------RPG.pwn(9567) : warning 215: expression has no effect
------------------------------------------RPG.pwn(9567) : error 001: expected token: ";", but found ")"
------------------------------------------RPG.pwn(9567) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

9567: new random = random(sizeof(GranaDescarregar));
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)