new file[100],Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name,sizeof(Name)); format(file,sizeof(file),playerid,Name);
if(!response) return ShowPlayerDialog(playerid,1125,DIALOG_STYLE_LIST,"Banco","Depositar\nExtrair\nBalanзo\nTransferir","Aceitar","Cancelar");
else if(strval(inputtext) > GetPlayerMoney(playerid)) return SendClientMessage(playerid,COLOR_RED,"Nao tens essa montante!");
else if(!IsNumeric(inputtext))
{
new string[128];
format(string,sizeof(string),"Actual Balanзo do banco: %d\nIntroduz a montante desejada:",pInfo[playerid][Deposit]);
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17141) : error 035: argument type mismatch (argument 3)
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17147) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17147) : warning 215: expression has no effect
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17147) : error 001: expected token: ";", but found "]"
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17147) : error 029: invalid expression, assumed zero
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17147) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
format(file,sizeof(file),"[%d]%s",playerid,Name);
new pInfo;
//substitua por
enum PlayerInfo
{
Deposit,
//dinheiro,
//mortes,
//etc, Vocк adiciona a medida que precisar, embora eu ache melhor substituir esse sistema pelos pvars
};
new pInfo[MAX_PLAYERS][PlayerInfo];
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17198) : error 028: invalid subscript (not an array or too many subscripts): "playerid"
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17198) : error 017: undefined symbol "Depositar"
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17198) : error 029: invalid expression, assumed zero
C:\Users\Pedro Nobre\Desktop\Servidor\gamemodes\crp.pwn(17198) : 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.
porque depois nao vai coincidir com o GM, eu queria ter um "dialog" no banco.
e que sincronizasse com o dinheiro e as estatisticas todas do GM, mas nao dб. por isso optei por tentar meter no GM. |