Neues Problem:
Ich versteh es einfach nicht.. Ich bekomm die ganze Zeit die "variable used without being declared" meldung" bei
$AmountItems = $AmountItems + 1 obwohl ich am Anfang des Scripts geschrieben hab
Global $AmountItems = 0
Der Bot soll nämlich zählen was er alles sammelt. Ich bekomm den Error bei der 2. Variable also:
Global $AmountItems = $AmountItems + 1
Global $AmountItems = ^ERROR
Einer von euch weiß sicher weiter
EDIT: Wenn ich es mit 1 statt 0 declare funktionierts. Ich werd dann bei den anderen Funktionen wo ich mit der Variable arbeite einfach $AmountItems -1 benutzen