Hallo Brotfischler!
Ich hab folgende Frage an euch:
Wie kann ich diesen Error beseitigen? ((16) : error 033: array must be indexed (variable "geldsumme"))
und diesen Warn: ((4) : warning 204: symbol is assigned a value that is never used: "geldid")
if(dialogid ==29 && response)
{
new geldid;
geldid = strval(inputtext);
ShowPlayerDialog(playerid,30,DIALOG_STYLE_INPUT,"Summe:","Wieviel willst du dem User geben?","Ok","Abbrechen");
}
if(dialogid==30 && response)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
new geldid;
geldid = strval(inputtext);
new geldsumme[64];
strmid(geldsumme, inputtext, 0, strlen(inputtext), 255);
PlayerInfo[geldid][pGeld]+=geldsumme;
new geldtext[50];
format(geldtext,128,"%s hat dir %s Gegeben.",name ,geldsumme);
ShowPlayerDialog(geldid,31,DIALOG_STYLE_MSGBOX,"ADM: Geld",geldtext,"Ok","Abbrechen");
}
MFG Butchey