Hallo,
C:\Users\Trixury\Desktop\GPR\gamemodes\RPR.pwn(56237) : warning 219: local variable "pCash" shadows a variable at a preceding level
C:\Users\Trixury\Desktop\GPR\gamemodes\RPR.pwn(56237) : error 017: undefined symbol "MAX_PLAYEE_NAMES"
C:\Users\Trixury\Desktop\GPR\gamemodes\RPR.pwn(56237) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\Trixury\Desktop\GPR\gamemodes\RPR.pwn(56237) : error 036: empty statement
C:\Users\Trixury\Desktop\GPR\gamemodes\RPR.pwn(56237) : 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.
if(dialogid == Guthaben)
{
if(response)
{
if(listitem == 0)
{
if(pCash[playerid] >= 150)//error zeile
{
SendClientMessage(playerid, COLOR_GREY, "Du kannst Maximum nur 150Coins besitzen.");
return 1;
}
tmp = strtok(cmdtext, idx);
moneys = strval(tmp);
if(moneys < 1 || moneys > 150)
{
SendClientMessage(playerid, COLOR_GREY, "Du kannst Maximal nur 150 Coins Kaufen.");
return 1;
}
new price = moneys * 4;
if(GetPlayerMoney(playerid) > price)
{
format(string, sizeof(string), "ERFOLG: {FFFFFF} Du hast dir %d Coins angelegt. ( Kosten $%d )", moneys, price);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
GivePlayerMoney(playerid, - price);
pCash[playerid] = moneys;
}
else
{
format(string, sizeof(string), "Du hast nicht genug Geld ($%d).", price);
SendClientMessage(playerid, COLOR_GREY, string);
}
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,DIALOG_HANDY,DIALOG_STYLE_LIST,"Handy Laden","Handy kaufen\nSimkarte aufladen\nCointFlat kaufen\nCointFlat kündigen","Auswählen","Abbrechen");
}
}
}